Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
2
votes
0answers
12 views

Details on Marketing Cloud Permissions?

Does anyone have any details or a link to a page that explains the granular permissions within Marketing Cloud? The documentation is atrocious in this area. It looks clear in the documentation here ...
0
votes
1answer
11 views

Read Access to Parent, but No Access to Child - Master/Detail

I have a master-detail relationship between two custom objects. I have read, create, edit on the parent record, but no access at all to the child due to profile permissions for the user I am looking ...
0
votes
0answers
12 views

How to allow public access to a flow in a community

I have created a Form using Flow and I have placed it in a community to be able to give it a specific URL. My main goal is to make this page accessible to everyone, without forcing them to create a ...
0
votes
1answer
9 views

Limit records based upon multiple criteria on object and user

I'm looking at limiting access to certain records such that should a record be assigned to a certain group of users (via some field on the object), only those users would be able see or edit those ...
0
votes
0answers
14 views

An error has occurred in the following section: [Exception, TransferRequiresCrudReadException]. Salesforce.com has been notified of this error

When I am updating account owner AAA to BBB, i am facing below error. I have checked profile level, Role level and share settings. Every level i have configured perfectly. But i created test account ...
0
votes
0answers
10 views

SOQL query on FieldPermissions is not returning row for all the fields of the sobject?

SELECT Id, Field, SObjectType, PermissionsRead, PermissionsEdit,parentid FROM FieldPermissions WHERE SObjectType = 'Account' AND parentId IN ( SELECT id FROM permissionset WHERE ...
0
votes
0answers
10 views

Unable to Subscribe to Report for one of my Users

I created a report for my Management level users, and they wanted me to add another user. I had no problems adding the management users, but when I went to add the ancillary user, I got this error. I'...
1
vote
1answer
19 views

Allow user to insert File/ContentVersion when not Admin

I want to insert ContentVersion as a non-Admin Profile/User. When I run the code below I get the error below. I tried to clone the System Administrator profile and call it nonAdmin, that did not work....
2
votes
2answers
22 views

Restrict Content Document access

Can I set No Access to Content Documents at the Profile level? I am working in LEX, with the understanding that there is no way to hide the Upload Files button without customization. So, I thought I ...
0
votes
0answers
17 views

Community user with customer community License not able to run Screen flow

I have created a screen flow and login flow. Have called the screen flow from the login flow. Login flow is configured to execute on community user login. When the community user logs in, my login ...
0
votes
1answer
28 views

Different permissions between REST API and UI

I'd like to be able to set different permissions for the same user depending on whether they're accessing/editing a resource in the UI or via the REST API. For example, they'd be able to edit a custom ...
0
votes
0answers
44 views

View Flow Usage and Flow Event Data Permission is conflicting across orgs

I noticed today that a permission conflict is resulting in the failure of a deployment and we have no clear way to fix it. The standard admin profile in Production has the View Flow Usage and Flow ...
0
votes
1answer
46 views

Locked myself out of the admin account

Accidentally gave myself API User permission set and now everywhere in salesforce I get salesforce.com/secur/NoAccess.jsp is there any way to overcome it consideringI have the only active Admin ...
1
vote
3answers
46 views

Control access exclusively to custom metadata screen

I am wondering what is the way to get edit access to a specific custom metadata using PermissionSet in UI. Here is what i have done: Setup -> PermissionSet-> MyPSName system permission -> checked ...
0
votes
0answers
27 views

Apex code behaving differently on different domains

We have a domain that is accessible once logged in to Salesforce, that we use to view VisualForce pages, like https://ourcompany.abc123.visual.force.com We also have a domain that has some publicly ...
0
votes
0answers
22 views

How can I deploy Connected App Permission

I am trying to figure out if Connected App Access to Profile/Permission Set can be deployed using Ant/Eclipse. If so what is the node in the Profile/Permission Set file which relates to this.
2
votes
0answers
21 views

Transaction Security is not available in Scratch Org

How am I able to turn on the visibility for transaction security? I am trying to test an apex class that implements TxnSecurity.PolicyCondition and according to this article to be able to see these ...
0
votes
2answers
30 views

need to provide one permission to users

I just wanted to add one permission to users (Sales(standard__LightningService) the current approach is to create a permission set and assigned connected app to PS.is this good for only one ...
1
vote
0answers
22 views

VisualforceAccessMetrics: Persmissions to Access this Salesforce Object

I am running this query in Classic => SELECT ApexPageId, ApexPage.Name, DailyPageViewCount, Id, Profile.Name, MetricsDate, LogDate FROM VisualforceAccessMetrics ORDER BY ProfileId But, I am ...
0
votes
0answers
17 views

Community Users have access to internal records?

For some unknown reasons, my org's Community Users have access to records that the internal org members generated. I have checked the following setting: Opportunity Sharing Rule: none that applies to ...
1
vote
0answers
30 views

Why are readable/editable fields missing from Profile.xml Metadata? Workaround?

I'm trying to build a "no permissions" baseline profile in a sandbox I just spun up from my production org before playing with a new integration (so I can assign permissions in a "least privilege" way)...
2
votes
1answer
25 views

Can I turn off read access to field history for some users?

All users should be able to see Cases, generally. Some of my users should see CaseHistory on the Case layout, and some (same profile) shouldn't. Is there any way to remove View permissions on ...
1
vote
1answer
55 views

The record couldn't be saved because it triggered an email alert that failed

Staff user is a member of Queue 1 attempting to transfer a record to another team which works out of Queue 2. When updating the owner to Queue 2 and saving the record the following error displays. ...
1
vote
1answer
26 views

Limit Access to records unless they are shared

This might be somewhat of a stupid question, at least it feels like it should be a fairly easy solution but I've been banging my head against it for a couple of days now with no luck. I'm trying to ...
0
votes
1answer
29 views

My boss deactivated the “Running User” who created the President's Dashboard which then disappeared

As stated in the title, in Classic, my boss deactivated a "Running User" who created the President's Dashboard which then disappeared. The deactivation was performed because that person is no longer ...
0
votes
1answer
30 views

Need that Partner User see contacts that match certain field with their own contact

Partner user should only see contact records that are related to them based on a field on the contact record, let's say Account for example. What I have tried: Sharing Settings: Contact | Public ...
0
votes
0answers
21 views

Marketing Cloud API for Admin Users [duplicate]

I am creating an external tool to help with auditing user access across multiple applications. One of those on the list is Marketing Cloud to be able to see which users have accounts and their status. ...
1
vote
0answers
18 views

Insufficient access error when trying to change api name of platform event or delete platform event

I am administrator in my scratch org. But when I try to change api name of an existing platform event or try to delete it, I got an error message saying that I don't have sufficient access to it. I ...
1
vote
1answer
26 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
1answer
23 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
1answer
44 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
34 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
48 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
17 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
58 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
51 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
38 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
23 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
29 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
17 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
33 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
17 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
29 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
27 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
145 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
25 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
40 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
68 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
46 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; ...