Questions tagged [permissions]

Salesforce permissions are all about what a user can do in terms of Field Level Security, object level access, Apex class access, Visualforce page access, and other built in Salesforce access that are handled via a profile or permission set.

Filter by
Sorted by
Tagged with
1
vote
2answers
41 views

How to check if user has permissions to create specific object

Given User.Id, how do I check with SOAP if this user has permission to create Contact or Lead? Update: So far I've discovered only this solution: SELECT ProfileId FROM User WHERE Id='...
1
vote
0answers
22 views

Community Welcome Email Merge Fields Not Merging

I have a visualforce email template being used as the Welcome Email for a Community. <messaging:emailTemplate subject="Welcome to X" recipientType="User" relatedToType="Account"> <...
0
votes
1answer
31 views

Restrict users to open Notes & Attachments [closed]

We have Account object which is common for all the users and they can see all the attachments for this object. Is there any way to restrict users to open Notes & Attachments? Only Account Owner ...
0
votes
0answers
35 views

exception message for SObjectException [closed]

I'm trying to check the permission to delete SObject records, and throw exception if permission is denied. I would like to know what message is suitable for this exception? if (Schema.sObjectType....
0
votes
1answer
20 views

Permissions for Flow Users on ContentDocuments

I have a signature capture screen flow that allows us to get digital signatures for users. When testing as a system admin everything worked as expected but when running as a user they don't appear to ...
0
votes
1answer
22 views

Permision control of Notes and Attchments

How can we control the CREATE/READ/EDIT/DELETE permission of Notes and Attachments via Profile/Permission set? Is the permission of Notes and Attachments govern by the parent object like Account, ...
0
votes
0answers
13 views

InboundMigrationToolsUser error while migrating org

I have this error when trying to migrate an org to a brand new one. Unknown user permission: InboundMigrationToolsUser I know this kind of error sometimes are related to some setting or feature ...
3
votes
2answers
55 views

Is a trigger on User the best way to add permission sets for Community Users?

I started reading about the RegistrationHandler interface but that is designed to allow the overall authentication and User creation process to be varied. In a Community, users can self-register (...
0
votes
1answer
31 views

Allow Profiles To ONLY See Records Created By Their Profile [closed]

I have been put to the task of cleaning up our companies Salesforce org. We have lots of apps on it, and each profile has it's own org. So the main issue I am running into is other profiles seeing ...
0
votes
0answers
25 views

Access needed to view Apex job status on visualforce page

I have the code below on a VF page and controller that I inherited, and need to move to another org. This is a page that lets a user kick off a batch job, and monitor the progress. I'm finding that ...
0
votes
0answers
12 views

How do you add permissions for creating a geofence message and new geofence points via Users -> Roles

I want to assign a role with permissions to send push messages and geofence entry and exit messages. Currently the role can set up and send messages but can't set new geofence points, I am have ...
0
votes
0answers
20 views

User cannot see attachments for one record but can see for other records on the same object

One user can see the attachments for 1 record but cannot see the attachments for another record for same object. Scenario: User : U Object : A Record 1: User U can see the attachments Record 2: User ...
0
votes
0answers
24 views

Disable View Roles and Role Hierarchy and View Setup and Configuration in profile System Permissions

I am trying to disable View Roles and Role Hierarchy and View Setup and Configuration System permission from a specific profile. When I click on Save button after removing checks from the check box ...
0
votes
1answer
21 views

Move permission set assignment in different tier using ANT

I have created custom permission and added it to newly created permission set and assigned users to that permission set. I was able to move Permission set and Custom Permission file from DEV to ...
0
votes
0answers
15 views

How do I permission-control community pages?

I have multiple communities set up in my org. I already have them set up such that pages with important data are login-protected. What I would like to do, however, is control who can see what. ...
1
vote
0answers
46 views

Schema.getGlobalDescribe not showing all standard object even from System Admin Profile

I am trying to run very simple code in a static method under classs. Method: public class TestUtil { public static void testMethod1() { for(String str : Schema.getGlobalDescribe().keyset()...
0
votes
1answer
26 views

Is it possible to allow a user to send Test sends but not Live sends?

Is it possible to allow a content creator permissions to perform test sends but not send live sends? If so what permissions would I need to select? Thanks
1
vote
1answer
35 views

Object Permissions from permissions sets don't work as expected

What does the " -- " in the type of permission object? I need to set this to readOnly
0
votes
0answers
29 views

How to add access for custom settings with protected visibility in 'Enabled Custom Setting Definitions Access'?

I have a managed package with custom settings and one custom setting has a protected visibility since we are storing my user's API key and secret key. We have users who have users who don't want to ...
2
votes
1answer
38 views

Code Snippet: remove “read” permissions for non-admins

I'd like to create a code snippet that can only be viewed by admins on the account. The code snippet would contain sensitive key information for a tokenized parameter and only admins should have ...
0
votes
0answers
46 views

want to query all ContentDocument without changing permission “Query All Files: Allows View All Data”

I want to run the following SOQL and want to get all the ContentDocument from all users. SELECT OwnerId, Title, FileType, LatestPublishedVersionId, ContentModifiedDate, CreatedDate FROM ...
0
votes
0answers
35 views

Hide all Opportunities from Profile

I am trying to hide opportunity specific fields (name, DOB, address) for a group of users in Salesforce. Since those fields are defaulted and can't be removed is my only option to change the Org wide ...
0
votes
0answers
16 views

Comparing Profiles in order to Consolidate (2020)

I have gone through most of the options for comparing profiles in an Org where there was no control over their creation. I need to compare profiles and find major differences to consolidate them into ...
0
votes
1answer
29 views

“Protected” Records and profiles permissions

In our org, we have a custom object, which all records meeting specific criteria need to be protected (criteria is StartDate older than 3 months) By 'protected records' we mean: for some specific ...
1
vote
1answer
26 views

Is it necessary to check isUpdatable() when process run in system mode/trigger to pass security review process

In salesforce, we have a scenario, on the trigger of the lead object we are updating some records of Campaign. But the user on the behalf of we are running the trigger does not have edit permissions ...
0
votes
0answers
21 views

How to show errors from lightning component on Visualforce page?

On a visualforce page, I have lightning components running inside lightning out container. When a user without permission to the component logs in and goes to this page, there is an error message at ...
3
votes
0answers
33 views

How to start and stop campaigns in Marketing Cloud?

The documentation https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/campaign.htm mentions that a campaign can be started and stopped via SOAP APIs. Where can we find ...
0
votes
1answer
27 views

Negative Unit Test for a Visualforce page profile permission

I do not want users from a 'XYZ' profile to access a VF page. I have removed the permission from profile level for that page. Functionality is working correctly and the user gets insufficient ...
0
votes
0answers
17 views

Updating a bunch of profiles by adding Custom Metadata types

I am trying to update a bunch of profiles by adding Custom Metadata types as they are required to be added for Spring 20 release if called directly from VF and I am not sure how can I add custom ...
0
votes
0answers
16 views

How to build query to get all data from TopicAssignment?

When run "SELECT Count() from TopicAssignment" in our code, it fails with error: Implementation restriction: TopicAssignment only allows security evaluation for non-admin users when either (1) ...
0
votes
1answer
44 views

Change/Update User License assigned to a permission set

I have created a Permission set using a Salesforce License type, now this permission set has to be assigned to community user as well which am unable to assign, so was thinking to update the license ...
2
votes
1answer
111 views

Not able to subscribe to Reports? Keeps giving error!

I am getting following error when trying to subscribe to reports - "We couldn't set up your subscription. Try subscribing again. If you still can't subscribe, ask your Salesforce admin for help." I ...
0
votes
1answer
20 views

Enterprise Territory Management without Sales Cloud User License

Is it possible to setup Enterprise Territory Management without Sales Cloud User licenses effectively? What are the downsides? We currently only have Service Cloud User Licenses but have enabled ...
2
votes
1answer
65 views

Restrict access to Salesforce REST Resources

The Salesforce org I am working on needs to restrict access to the Salesforce's REST Resources from Lightning Platform REST API. (for example /services/data/vXX.0) From my research I understood that ...
2
votes
1answer
67 views

Custom Setting Access

I have 2 public list custom settings. Both can be exposed via the Custom Setting UI and Apex with the Customize Application permission. However, without that permission 1 of the Custom Settings is ...
6
votes
1answer
241 views

How to get list list of flows accessible by a User based on Permission Sets?

In order to provide more granular and controlled access to flows, all our flows are enabled with access setting of "Override default behavior and restrict access to enabled profiles or permission sets"...
1
vote
2answers
53 views

How to determine which objects do not support Modify All and View All permissions?

All custom objects and most standard objects support Modify All and View All permissions, however, some like object like Idea do not support them. Is there a way in Apex to determine which objects do ...
0
votes
1answer
12 views

Is there a way to define if a field is Ever Updateable, if Update access can be granted to a field by Profile or Permission Set?

Is there a way to define if a field is Ever Updateable, if Update access can be granted to a field by Profile or Permission Set? Field Describe information for a field can define if permissions can ...
1
vote
1answer
38 views

How user is able to Update Record

I have a custom object whose OWD is Public Read/Write and the profile of user has Read and View All permission for that Object. Now I have a Custom Button on that Object using Aura component I'm ...
2
votes
1answer
35 views

SOQL query for all Users who have read access to Task object

I am trying to write a SOQL query to find a list of Users who have read access to the standard Task object but my query keeps coming back empty. Is there a better way to do this? I have a dropdown ...
1
vote
1answer
66 views

Salesforce Marketing Cloud - Roles and Permissions Issue

Typically for a power user in SFMC I will assign the following roles: Administrator Marketing Cloud Administrator Historically this has given access to 95% of the areas needed. The issue is now ...
2
votes
2answers
33 views

Remove installed package objects permission from Profile

Is there any easy way to remove Read, Create, Edit, Delete, View All, Modify All permissions of objects related to installed packages from Profile?. I have been doing this manually by going ...
0
votes
1answer
35 views

Creating Service Resource with Asset record type

We are trying to create Service Resource with Asset record type. But getting the following error: Found something here: We tried giving Lightning Scheduler permission by follwoing Manage ...
1
vote
0answers
36 views

Deleting ObjectPermissions record fails in apex batch but succeeds in two separate apex transactions

I have a Apex Batch job that "cleans" object permissions on permission sets automatically based on some rules. Essentially in each batch execution I am deleting all ObjectPermission records to a ...
0
votes
1answer
50 views

How to give access to records of lookup users?

In an Account Object a field called ‘Sales Person‘ and it has lookup relation with the user object. If the user is selected as the salesperson for a record, that user able to see those records, but ...
0
votes
1answer
23 views

Time limit exceeded while enabling all Apex classes in permission set

I have created a permission set. The permission set does not have access to any apex class: Enabling all classes in the permission set: Getting the below error: I can enable the permissions for ...
3
votes
1answer
141 views

Is it possible to upload files as a guest user in a community?

Is it possible to upload files as a guest user in a community? I am using a lightning web component lighting-file-upload component with a case's id as the recordId. The file upload works for ...
0
votes
0answers
8 views

Update all subscribers from a synchronised data extension

If we were to use a custom preference centre and synchronise the optin status of an email address and subscriber key into marketing cloud using a synchronised data extension managed in sales cloud, is ...
0
votes
1answer
38 views

Way to assign read only to ALL fields at once?

Is there a quick and dirty way to assign read only to every field in all objects at once? It is rather tedious for read only profiles to go object by object/field by field. Thanks!
2
votes
1answer
34 views

Field level Security Or Profile permission edit not working!

On a "section" of the Opportunity Object I am trying to give "read only" to a specific profiles or specific user however when I go to profile I am unable to edit profile permission of the object I am ...

1
2 3 4 5
16