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
1answer
25 views

CRUD enforcement does not allow access despite user privilegies

I've a custom object accessible for a custom profile cloned from Salesforce/ Standard user profile. The custom object was created using a System administrator user profile. I've granted access to this ...
0
votes
0answers
16 views

Can change the ownership(to internal user) of custom object record by Site Guest User

We have lightning community, in which we have drag and drop component. After onclick of button, we are updating custom object 'contact survey' record owner id. In @AuraEnabled method we are updating ...
1
vote
0answers
33 views

How to remove fieldPermissions from Profile via metadata API

We manage to create new fieldPermissions by calling updateMetadata() and passing to it a Profile object with the new fieldPermissions. However, we haven't figured out a way to remove specific ...
4
votes
0answers
30 views

SOQL query: “sObject type 'FeedPollChoice' is not supported” for specific user

I have an application that is making calls against the REST /services/data/<api version>/query/ endpoint. My Salesforce org has two users: Alice has the "System Administrator" profile, and Bob ...
1
vote
0answers
39 views

Apex(no sharing specified) , OWD (public read only) and read Object level permission on profile - INSUFFICIENT_ACCESS_OR_READONLY

Custom Object - OWD (public read only) Apex(no sharing specified) and the apex is the entry point Object level permission on profile is read I was trying to update a custom object logging in as a ...
1
vote
0answers
15 views

Validation rule error triggers page to switch from Lightning to Classic

I've created validation rules to dissallow users to change a 'status' field until certain fields are populated. This issue occurs when a user tries to change the 'status' without populating necessary ...
3
votes
0answers
45 views

Standard User with “Modify Metadata” fails to create active Picklist Value

What is failing here perfectly works for a SysAdmin user. I have a StandardUser with a permission set which grants him ModifyMetadata and calling this code creates the Picklist Value but leaves it ...
0
votes
1answer
21 views

Can't disable “Edit Read Only Fields” permission for system administrator

If I go to: service setup - profiles - system administrator - system permissions Here there's a long list of permissions. I'd like to disable the "Edit Read Only Fields" permission but there's not ...
1
vote
1answer
29 views

Retrieved profile from scratch org contains a permission which is unknown to a sandbox, why?

I've been working with SalesforceDX for a while now, and I've always removed profiles from deployments because of similar issues. Often you will create a simple scratch org, write your code, and then ...
0
votes
0answers
22 views

How to make some field read only on an object accordingly to the profile

I have to do something like this : For each profile, except system admins, on the inactive accounts (statut__c = 'inactive') we should not be able to edit every fields (so I need to make them read ...
0
votes
1answer
27 views

Apex Check is Object is enabled

We have a managed package and wants to check if the subscriber has enabled Network object in their Org. I try with this Schema.sObjectType.Network.isAccessible() But getting an error if the network ...
0
votes
1answer
10 views

Give Manage User Permission to a User without View Setup and Configuration

I have a visualforce page to manage users (deactive, create, edit and reset passwords), but when I add the permissin manage users to the profile, the user with this profile can see the Setup option, ...
1
vote
0answers
41 views

License required to access User object

I have a requirement to show user list inside the lightning component. Its working fine for all the users except users with "Chatter Only" license. For Chatter-only license, whenever they access that ...
0
votes
1answer
26 views

Create a record OutOfOffice

When I try to create a OutOfOffice record with which the other user is not my own user in apex, Salesforce throw the DML error ("INVALID_ACCESS_LEVEL, Only Self User can update the Out Of Office ...
0
votes
0answers
15 views

How to programmatically set all fields to read/edit for System Admin

Is there a way to programmatically set all the field permissions on the Admin profile? The problem I've encountered is that while you can set FLS with Apex or mdAPI, both only allow access to those ...
0
votes
1answer
26 views

How to move newly created salesforce profile in sandbox to production with correct permissions?

I have a pretty standard scenario that I have not been able to find a clear answer or great documentation on. The scenario is, in Sandbox A, you clone Custom Profile 1 as Custom Profile 2. You ...
0
votes
1answer
23 views

Need to Fetch If assigned PermissionSet to user have specific permission

Requirement-I need to sent true or false flag based on permissions assigned to user Permission sets. Suppose one user is having 5 permissions assigned to him/her ,I need to check(...
1
vote
3answers
63 views

How to allow OpportunityLineItem delete but not Opportunity delete

How can I stop users from deleting Opportunity's but allow them to delete OpportunityLineItems? Because OpportunityLineItem is a child record of Opportunity it is not possible to control it's object ...
0
votes
1answer
21 views

Impacts on Page Layouts, Record Types, Objects and Fields on Profiles Clean Up

Since the Salesforce org becomes old, there is a need for Clean up. On this process, looking to clean up the profiles in the org. I have already created an Administrative User report to check the ...
1
vote
1answer
35 views

Dynamically retrieve information, if a given SObject field is system read-only

I have apex code that dynamically creates SObject records based on configurations (metadata type records). The code needs to evaluate on-the-fly, if the Sobject field that should be "put" (...
0
votes
0answers
24 views

how to get API names of permission in profile/permission set

I have some permission names which i want API name of those permissions. couple of permissions which i am not able to get APIname and not also able to judge apiNames of those profiles from fetching ...
0
votes
0answers
33 views

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id. Inserting Account as Customer Community User in Test

I have a simple Apex controller method: @AuraEnabled public static Boolean addAccount(String companyName) { try { Account acc = new Account(); acc.Name = companyName; ...
1
vote
1answer
33 views

Dev Platform - Custom Object

I just created a developer org for a customer presentation. I have created a special object from the object manager. When creating, a warning message appears: "Permissions for this object are ...
0
votes
0answers
24 views

Cant Find Manage External User Permissions? [duplicate]

I want to use Manage external User For community for which i need to add that button on layout.button not visible on any of the layout. External Sharing Model Enabled. Customer community created. ...
0
votes
1answer
64 views

Downloadlink not working for Guest user site

I have created a link on a visualforcepage for Guest user.The link shows correctly with the correct id. When I try to download the link a new page is opened with the error: urlsite/ex/...
44
votes
3answers
7k views

Salesforce bug enabled “Modify All”

Apparently, Salesforce has released a patch that implicated "Modify all" to be enabled for every single profile in some orgs. This includes standard profiles and custom as well. Yes, even standard ...
0
votes
1answer
88 views

Update failed. INSUFFICIENT_ACCESS_OR_READONLY, You do not have the level of access necessary to perform the operation you requested

Background I have created a custom upload component based on this but using ContentVersion rather than Attachment. This custom upload component is being used on a public community page and has an ...
0
votes
1answer
54 views

Restrict API permissions for package

I'm creating a package that allows Salesforce API access via a connected app. It works great in my demo org, but our customer does not want it to have access to any data other than contacts and a new ...
0
votes
1answer
71 views

“Allow Delete Only If” Permission

Disclaimer: Permission settings newbie here. In my org, there are 3 departments. I've set up a role hierarchy with three branches where each head of department (HOD) is at the top. Underneath is ...
0
votes
0answers
64 views

Users cant see tasks they created and assigned to others

we wre facing an issue where ALL users need to create tasks WITHOUT relating them to account / contacts. when they do so they get 'insufficient privileges' error. ​​​​​​Is there anything that could ...
0
votes
0answers
67 views

Query All files permission for Lightning component controller

I've a lightning component which allows Contacts to upload files from community. The component has a without sharing apex controller which tries to delete files before storing again. The controller ...
1
vote
1answer
97 views

Turn off access to Setup area in Salesforce

According to our client's requirements, ordinary users of developed applications should not be able to access Setup area in Salesforce. Out first naive approach was simply to revoke 'View Setup and ...
0
votes
3answers
88 views

How can I remove Read permissions on a Standard Object in a Unit Test?

I need to test a behavior for when users have no access to the Document object; not even Read access. I've started w/ a mock user given the standard "Read Only" profile, and I'd like to use the ...
0
votes
2answers
99 views

@AuraEnable Server side controller not executing properly (not showing debug log)

I have this component that is available from a Community, where an object gets populated and passed to Apex controller in a JSON String. From the server side, it should show via debug what I ask, but ...
1
vote
1answer
27 views

Set Password Policy to 'Never Expire' using metadata

I need to deploy profile with Password policy setting as 'Never Expire'. I am not able to get it deploy, don't find the tag use to deploy password settings.
3
votes
0answers
64 views

Get available record types for any user (not just current one) in apex code

We need to fetch in apex code list of available record types for a user provided by its id. We've already figured out how to do the same for current user (e.g. using DescribeSObjectResult....
0
votes
2answers
61 views

How can I Efficiently Check if the Running User has a Standard Permission?

There is a method FeatureManagement.checkPermission to check efficiently if a user has a custom permission. How can we check efficiently if a user has a standard permission instead? For example, ...
5
votes
1answer
90 views

Any way to get Child Relationships without being bound by user permissions?

Question User object-level permissions limit the results of DescribeSObjectResult.getChildRelationships(). Are there any workarounds? I have submitted an Idea about this (https://success.salesforce....
1
vote
1answer
36 views

How to manage versions of scheduled flows?

We have an autolaunched flow that we would like to run on a schedule. I have created an apex class to do so, but when testing the class, I discovered that it is encountering errors only associated ...
0
votes
0answers
15 views

View my cases and all new cases (other owner)

as an agent I need to see the tickets I managed (the owner is me) and also the new tickets (other owner). I tried to filter in the lists of views but it doesn't allow me to do what I want. Any ...
0
votes
1answer
24 views

What is the difference between Visible & Edit Access

While we create a new field in an Object, we come across a screen where we would select whether we need Read Only access or Visible access to that field. In Profile level, we need to give whether a ...
0
votes
1answer
39 views

How to get a Community User able to edit its own contact record inside the community?

I need provide Users under Community User Profile be able to edit their own Contact record, also Users with Partner Community Profile be able to edit their own contact and other Community Users ...
1
vote
0answers
24 views

How to Make Sure Apex Class is Called after Campaign Member Automatically Added/Removed

Been running into this issue for a while and would love some assistance. More than anything, I think this is a question about how to work around permissions. I hope this is the right place to ask this ...
0
votes
0answers
32 views

Permission missing for creating Notes in Lightning Experience

I have a custom link to redirect the user to create a new note. In Salesforce classic, the custom link works and the user is able to create a note. When I switch to Lightning Experience and click the ...
0
votes
0answers
15 views

Lead Status and custom field not viewable and editable in VF page for other profile

I have a VF Page for Update of Mass Lead. There are 2 profiles, "Profile X" and "Profile Y". In the "Profile X", I can view and edit the standard field Lead Status and custom field Lead Status Reason. ...
0
votes
0answers
21 views

Grant edit access on Tasks to users regardless of role hierarchy

Is it possible to grant users with edit access to tasks regardless of role hierarchy and without giving 'Modifiy All Data' permission ? As per my understanding, if task is craeted and related to a ...
2
votes
1answer
33 views

Which permissions are required to enable History Tracking?

Working through some training exercises and trying to track history on some fields in the Account object. I'm getting an Insufficient Privileges error. Which permission do I need to be able to do ...
0
votes
0answers
39 views

Insufficient access rights error when Customer Community users edit contacts

We're running into an issue where Customer Community users cannot edit contact records, even though this page says they can: https://help.salesforce.com/articleView?id=users_license_types_communities....
0
votes
2answers
24 views

Where are “Standard Object Permissions” in Profiles?

I can't find them. I'm an administrator.
0
votes
1answer
23 views

Can we restrict edit access of community /partner users?

I want to restrict edit access of community/partner portal users from internal user. I have disabled "Manage users" permission and its dependant permissions from internal user's profile, but still I ...