Skip to main content

Questions tagged [permission-sets]

A permission-set is a collection of settings and permissions that give users additional access to objects, records, tools and features they wouldn't otherwise have through their assigned profile. In this manner, a permission-set extends a users’ functional access without making any changes to their profile. This feature allows organizations to extend access for users without additional custom profiles for unique situations or limited time periods.

Filter by
Sorted by
Tagged with
14 votes
6 answers
29k views

Exclusive differences Profiles vs permission sets?

I understand, the differences between Profiles and Permission Sets. I just wanna ask are there some configs that make Profile or Permission Set unique. Are there things that could only be done via ...
Pranay Jaiswal's user avatar
27 votes
2 answers
46k views

How can I assign a permission set to a user in a test context?

I have set OWD to private and create a permission set to give access to object. We have removed all the object settings access from the concerned profile. Previously with OWD set to private, profile ...
Rohit's user avatar
  • 733
11 votes
2 answers
4k views

How is Permission Set Metadata Deployment changing in Summer '17 (API 40.0)?

Salesforce recently sent out an email entitled ATTENTION: Update to Permission Set Metadata Deployment in API 40.0 with Summer ‘17 Email contents: Product & Service Notification As an ...
Daniel Ballinger's user avatar
7 votes
5 answers
26k views

Can I assign Permission set to a profile instead of user?

I knew that Permission set can be assigned to User record. But just want to know the possibility of assigning the Permission set to a Profile instead of user. I saw some query related to this posted ...
Robert Thomas's user avatar
7 votes
1 answer
2k views

Packaging system permissions in permission sets

I'm trying to package 'Customize Application' system permission in a permission set. However, after installation I see that the permission set does not have the system permissions that were assigned. ...
Tan's user avatar
  • 265
5 votes
1 answer
1k views

Correctly grant access to packaged Named Credentials

My Managed Package uses External APIs and packages External Credential and Named Credential artifacts. I also have packaged a Permission Set, and I tried hard to make use those packaged Credentials. ...
Robert Sösemann's user avatar
4 votes
1 answer
2k views

How to change field permissions in a permission set or profile programmatically (APEX)

I've been testing out a component where one can programmatically create a field in the user object. It's being used to allow a user to check a few boxes that'll filter components in pages (using the ...
Victor Archela's user avatar
4 votes
1 answer
7k views

System Administrator can't access Email Templates

I have a user with the system administrator profile, and suddenly it can't see anything related to email templates in Setup/Quick Search. The user was able to use and modify them previously (just ...
mife2032's user avatar
2 votes
1 answer
13k views

Query on permission sets held by a user

Does anyone know a basic way that I can run a SOQL query to see which permission sets are attached to users? We have a rather large issue where a button needs to be on a page layout for a few ...
Tim's user avatar
  • 1,373
2 votes
1 answer
397 views

CanInsertFeedSystemFields?

Trying to deploy to an Org I get this: permissionsets/Our_Administrator.permissionset -- Error: Unknown user permission: CanInsertFeedSystemFields I've figured out that the kind of settings an Org ...
powlo's user avatar
  • 2,660
32 votes
2 answers
56k views

Assigning permission set to user in apex

Is it possible? Are there any limitations to consider? I have a use case where if a certain relationship is maybe, we would assign a permission set that grants access to a knowledge base data ...
NSjonas's user avatar
  • 10.2k
11 votes
4 answers
63k views

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY: insufficient access rights on cross-reference id: []

I have a custom object Resource__c having master detail with Account object. I have Account1 created by User1 and if User2 goes to create resource on Account1 then below error is given :"...
Pravesh Mehta's user avatar
9 votes
1 answer
6k views

Deployment fails with: INVALID_CROSS_REFERENCE_KEY, You can only assign users to permission set groups that have the "Updated" status

Do CI deployments to a sandbox (Summer 21) that includes unit test code that mocks users and assigns them to a PermissionSetGroup. Unit test code has been working for months. The user mock factory is ...
cropredy's user avatar
  • 71.9k
9 votes
2 answers
12k views

Get all field level permission from SOQL for an permission set

What I want to do: I am trying to create a tool in Java, which query permission sets from Salesforce Org using REST(As we do in workbench). After getting all the permission sets which field ...
वरुण's user avatar
7 votes
2 answers
3k 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"...
Mohan P's user avatar
  • 95
6 votes
1 answer
2k views

Control Managed Package Connected App Permission Set from managed code

I'd like to deploy a Canvas Connected App as part of a managed package and be able to dynamically assign users access to it via a Permission Set. The Canvas App is using the Signed Request (Post) ...
Daniel Ballinger's user avatar
5 votes
1 answer
448 views

Clone packaged permission set in Apex

As part of another question where I tried to automate the creation of a Connected App for a Managed App and were successful with many steps but failed Assign a packaged permission set to the ...
Robert Sösemann's user avatar
5 votes
3 answers
12k views

Permission Set->Flow Access available flows is empty

I have Screen flow Unlock Record And want to set access for it to permission set But in flow access window there are no flows. Could you please help me figure out why so?
Dmitriy Bereza's user avatar
5 votes
1 answer
7k views

User licenses and Permission Set Licenses

I was wondering how those licenses work. When I have a view like: User Licenses : Salesforce 30 Permission Set Licenses : Sales User 10, Service User 10, CRM User 10 I know that permission set ...
Fabio Maturo's user avatar
4 votes
1 answer
4k views

Query Object Access by Profile

I have looked at the documentation and it seems the best I can do is query ObjectPermissions for PermissionSet access. Is it possible to do the same for Profile instead of PermissionSet? THANKS FOR ...
Steel Reserve 211's user avatar
4 votes
1 answer
2k views

Testmethod PermissionSet Assignment has no effect on FLS checks

Use case - verifying that running user's permissions permit custom field to be created. Assume that: PermissionSet myPermSet grants edit permission on Obj__c.Fld__c The test's running user does not ...
cropredy's user avatar
  • 71.9k
4 votes
1 answer
573 views

Can I completely replace Profiles with Permission sets

I have a managed release package which is having one custom profile. Now in next release I want to create a new profile in V2.0 of released package. But what I found is while upgrading package, I can ...
SEuser's user avatar
  • 1,855
4 votes
3 answers
2k views

Assign permission set to Automated Process User causing error "CUSTOM_TAB_LIMIT_EXCEEDED"

I'm having trouble assigning a permission set to the Automated Process User. I followed this guide from UnofficialSF, which worked for me before, but for some reason it's not working now for this Org. ...
Jorge Ortega Traverso's user avatar
3 votes
3 answers
10k views

MIXED_DML_EXCEPTION when creating PermissionSetAssignment in test class

I keep getting following exception when trying to assign permission set to a user in test class: System.DmlException: Insert failed. First exception on row 0; first error: MIXED_DML_OPERATION, DML ...
IvanR's user avatar
  • 855
2 votes
1 answer
241 views

Not able to get Asset Level field permission through SOQL

I have a permission set named abc. Permission to Asset Level field for Asset object is defined like below in abc: I am trying to get field level permissions for abc permission set using the below ...
वरुण's user avatar
2 votes
0 answers
130 views

How does Permission Sets works against Licenses of Managed Package

We have built a Second Generation Managed Package and want it to be available as paid version in AppExchange Portal. So If a user buys it from AppExchange, he/she gets the licenses to use the solution....
S1th's user avatar
  • 143
1 vote
2 answers
685 views

How can I map between a permission name in the API and the label shown in the UI?

I just ran into an error when deploying a Profile that required knowing the mapping between the UI Label "Run Macros on Multiple Records" and it's corresponding API PermissionName of "...
Daniel Ballinger's user avatar
1 vote
1 answer
2k views

How to add Apex Class Access to permission set programmatically

Is there any chance to add Apex Class Access to a permission set programmatically? E.g. the following code allows adding field permissions to the perm set. insert new FieldPermissions( ...
DrWebber's user avatar
1 vote
1 answer
276 views

Query on FieldPermissions object is super slow

We have created VF page that shows the access to fields for all profiles and permission. This page runs supper slow. When we analyse the the code with developer console we realized that this issue is ...
AtulRajguru9's user avatar
  • 9,120
1 vote
1 answer
61 views

Need to change object permissions of standard profile-URGENT

I have Lead OWD set as Private. I have 5 users in Marketing User(std obj)..I need to give View All & Modify All permissions on lead object of this profile. How to approach.? Cloning marketing ...
Laxman's user avatar
  • 63
1 vote
1 answer
2k views

Difference between service user permission set licenses & feature licence

I wanted to understand the difference between permission sets and permission set licences. The text in the documentation is very generic and I was looking for examples. (I finally got it ) I my ...
user682217's user avatar
  • 1,171
0 votes
1 answer
415 views

Integration user can't be used for Lead conversion

I'm trying to get the Integration user to convert a Lead via REST API. But it seems Integration License cannot have App permissions like Lead conversion. I created a Permission set with Convert Lead ...
Pasan Eeriyagama's user avatar