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
0
votes
1answer
16 views

Easiest way to grant edit access to a field for one user on case object without creating a new profile?

I was curious if anyone knew the easiest way to grant edit access to a field for one user on case object without creating a new profile? I am using an existing profile that has cred setup to allow ...
8
votes
1answer
244 views

Spring 22 testmethod GACK when assigning a PermissionSet to a newly-created user

If you have this testmethod: @IsTest private class NewSysadTest { @IsTest static void testSuccess() { User testUser = new User( username=UserInfo.getUserId()+'.'+ (DateTime.now()+':'+...
0
votes
0answers
12 views

How do you assign permission set to 'Connection User' for Salesforce2Salesforce

When you have Salesforce to Salesforce enabled, Records created in target org. seem to be created by 'Connection User' which seems not visible in Users, or via SOQL in Dev console. In Target Org. ...
1
vote
0answers
28 views

Assign permission set in a connected Org via external objects with Apex class

We are creating users in a connected Org via external objects without issues, but when trying to assign the permission sets to those users we are getting the error "System.SObjectException: ...
0
votes
0answers
14 views

Is it possible to deploy profiles and permission sets and skip the not found dependencies?

My question is: Is it possible to deploy profiles and permission sets and skip the not found dependencies? Problem: The profiles and permission sets that I want to deploy are quite big and they always ...
0
votes
0answers
17 views

Permission Sets giving issues in Apex Test Code

I am getting this error from the Developer Console: System.QueryException: List has no rows for assignment to SObject For this specific line in my test: PermissionSet ps = [SELECT Id FROM ...
0
votes
1answer
36 views

Pull Record Types per Permission Set through Metadata API

I'm trying to list the Record Types per Permission Set. Unfortunately, this cannot be done through SOQL Query (IIRC). That said, can somebody help me on how to achieve this through Metadata API (or ...
1
vote
1answer
24 views

Validation rule ownership change

I'm trying to set up a validation rule where only the current record owner or an administrator can change the account ownership. This is what I have at the moment: AND( ISCHANGED(OwnerId), $...
0
votes
1answer
78 views

assign permission set to profile? [duplicate]

We normally add permission sets to each user individually, however, a certain profile in our company always requires a specific permission set Question: Permission sets can be assigned to Users, but ...
0
votes
0answers
10 views

Division Field not Showing up lead object

Need to filter leads by division using the standard division field on a list view. The Division field on account and leads shows up on reports but its not showing up on the list view filters. Also, ...
0
votes
0answers
9 views

With PSA Standard Platform user license, the user is not able to edit assignments from resource planner. He has the permission sets as users who can

PSA Standard Platform user license, the user is not able to edit assignments from resource planner. He has the permission sets as users who can edit. The user setup and managed packages is the same as ...
1
vote
1answer
48 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( ...
1
vote
0answers
16 views

Target Org Community user unable to access Protected custom setting in Managed package

We have created a custom lightning component for one of our client who are utilizing our Managed package. We are calling a managed package global apex class from this custom lightning component where ...
4
votes
1answer
112 views

Do additional Permission Sets reduce Salesforce Performance?

I have hundreds of different functionalities setup in Salesforce each with its own Permissions Set for various privleges (FLS, Class access etc), given to various roles across the business. I wish to ...
4
votes
1answer
113 views

Permission organisation in Managed Packages (Base+Extension)

When looking for detailed information on how the Salesforce Permission artifacts: Permission Sets Permission Set Groups Custom Permissions can be best used in Managed Packages (across Base and ...
0
votes
0answers
23 views

I only want to give users edit and read permissions for macros object but using permission set only and not via profile

I have a requirement where I want to give edit permission to users using permission set.. and not via profile. I created one permission set and given read,edit and view all permission still after ...
2
votes
2answers
123 views

Reasons to Use More Than One Profile in an Org

I just started a project at a new company who is configuring a new Salesforce org. I've learned that they are planning on using only one Profile for what currently looks like 3 different personas (...
0
votes
0answers
33 views

How to set permission for a User

I have 20 users having the same profile and having CRED as well as ViewAll permissions. I want to remove the viewAll permission for a single user, what are all the possible ways to achieve this? I ...
0
votes
1answer
29 views

personemail not showing in account permission set

when tring to set permissions for account fields for a permission set, personemail is not showing, how can I update the field permission using permission sets and not profiles?
4
votes
1answer
60 views

PermissionSetTabSetting record returns different Name when i call it from LWC

I have a method which returns list of PermissionSetTabSetting records. I use following SOQL: SELECT Id,Name,Visibility,ParentId FROM PermissionSetTabSetting WHERE (ParentId IN ('0PS5g000005r8bWGAQ')) ...
0
votes
1answer
152 views

The same SOQL query returns different results from Apex code which was called from LWC

I need to get tab visibility for Permission Set. I have tabs for 2 objects:Account and Account__c. I use this SOQl request: SELECT Id,Name,Visibility,ParentId FROM PermissionSetTabSetting WHERE (...
0
votes
0answers
36 views

How to Access permissionSet from PermissionSetGroup/Profile to see if a user can access an object

I need to verify if a user can access in Read/Write object Account. I understand there are multiple ways to give access to an object: by the PermissionSet by the PermissionGroup by the profile So, ...
0
votes
0answers
10 views

How to provide CRUD permissions over groupmember object

For a non-admin user(Salesforce Platform license) with minimal/specific permissions, we want user to access groupmember record programmatically, for CRUD operations (especially Delete). However, while ...
0
votes
1answer
157 views

Permission Set deploy error - no custom field named XXX.yyy found

Use case is deploying from GitHub to a CI org. Deployment includes a PermissionSet Salesforce reports error on PermissionSet Foo: In field: field - no CustomField named OrderItem.MyField__c found ...
0
votes
0answers
26 views

Inserts of ObjectPermission or FieldPermission fail in an InstallHandler - is there an InstallHandler alternative?

Code that inserts ObjectPermission and FieldPermission SObjects through normal insert calls (on a permission set that is also created) works fine in unit tests and through the developer console. That ...
3
votes
1answer
99 views

Managed Package Permission Set missing permissions

I've created a permission set and included it in a 2nd generation managed package. However, when I install or upgrade the package some of the permissions I've assigned remain unchecked. These include: ...
0
votes
1answer
54 views

Can we use custom setting to restrict access for a user?

Can we use hierarchical custom setting to restrict a particular user from deleting object record. The profile has Delete permission on profile for that object. And it should not be changed as per the ...
0
votes
2answers
53 views

Why FirstName, LastName, Company field not found in FieldPermission query result?

I'm trying to get all fields and its read and write permission using below query SELECT Field, PermissionsRead, PermissionsEdit FROM FieldPermissions WHERE SObjectType ='Lead' AND parentId IN ( SELECT ...
0
votes
3answers
90 views

Merge 3 Permission Sets into 1

I have raised a question here regarding how to merge Permission Sets: https://stackoverflow.com/questions/68680012/salesforce-merge-3-permission-sets-into-1 Copied text from above link: I have 3 'old' ...
0
votes
1answer
79 views

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

I'm struggling to assign a mocked permission set group in a test class. The test class fails because of the following error: INVALID_CROSS_REFERENCE_KEY, You can only assign users to permission set ...
1
vote
1answer
26 views

Can't create new user: Error on All inbox permission sets are in use

While trying to create a new user, I get the error that 'All inbox permission sets are in use' We had the Inbox feature in the past, but we didn't go with it. It's disabled. Is that the issue? I ...
1
vote
2answers
71 views

Permission Sets by Feature (instead of Role) and Grouped for Roles

My team and I are currently looking for the best way to manage permission sets. Each permission set adds overhead in development and testing. Ideally we would provide the minimum amount but as ...
0
votes
0answers
14 views

Duplicate permissions in permission sets are deleted when using SFDX deploy

For example, if I have <classAccesses> <apexClass>APX_someClass</apexClass> <enabled>true</enabled> </classAccesses> in my foo.permissionset-...
4
votes
1answer
599 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 ...
2
votes
1answer
58 views

Getting 'Insufficient Privileges' Error in Post Install Script when inserting PermissionSetAssignment records

I have requirement like in managed package, we have a custom field on Contact Object. We need to grant the edit access to this custom field for all the users who have Create access on the Contact ...
0
votes
1answer
113 views

Why does a single profile have duplicate permissions for the same objects?

I am running SOQL queries to compare object permissions, but get duplicate permission for the same profile. For example, the "System Administrator" profile has two identical object ...
0
votes
1answer
113 views

PermissionSet deployment Error: Permission Query All Files depends on permission(s): Read All BackgroundOperation, Read BackgroundOperation

I'm getting following error while deploying source with SFDX into sandbox. This error happens without any changes to any permission set. Permission Query All Files depends on permission(s): Read All ...
0
votes
0answers
34 views

User cannot see Data in list view - is this due to Time Zone

A user is in the same Profile, and has exactly the Same Permission Sets as 4 other users, yet this User cannot see the data in a list view. The list view itself is visible but no data. I am perplexed ...
0
votes
1answer
151 views

Field Service Lightning Data Sync Issue

Please help me out. I am getting this error(mentioned in image below) on Field Service Lightning Mobile App. What could be the reason?
0
votes
1answer
372 views

Why do Object Permissions in Permission Set override Field Permissions in this case?

I'm having an issue where I want a user with an assigned permission set to be able to see fields in an object ("Read" Permission in Object Level), but I want 2 fields to be hidden ("...
0
votes
1answer
41 views

Custom Button Permission to selected Users in a Profile

I have created a Custom Button on Lead Object, and placed it on the Page Layout associated with a particular Lead RecordType. This Page is assigned to all the users in the Profile. I want to limit ...
0
votes
0answers
421 views

Data Loader Permission Sets

I need to create a permission set for a member of staff to use dataloader. I created the permission set with license set to none so that I can assign to users with different rights. I then assigned ...
0
votes
1answer
147 views

What are 'View Setup, Edit Setup, Delete Setup' Object Permissions?

These are appearing in Profiles and Permission Sets under Object Settings - I cannot find any documentation on this - can someone please explain/elaborate? Thanks, Parikhit.
0
votes
1answer
32 views

Non admin profile with access to read and edit all objects

Is it possible to give a user access to all objects (read and edit) but not allow them to do admin stuff like workflows, process builders, creating new permission sets or any other admin stuff except ...
0
votes
1answer
27 views

Permission set does not exist in process builder

I am facing a problem while creating a process with process builder, i want to call a permission set but i cannot find it , can someone help me
0
votes
1answer
358 views

How to give access to Content Management of experience cloud site?

I cannot give access to the Content Management workspace to other users via permission-set. My users can only see 'Content Targeting' instead of 'Content Management', so they can't access the 'Content'...
0
votes
0answers
25 views

How to troubleshoot Connected App + Permission Set Issues?

I have an issue with a Connected App that my company has developed for our customers that are using Salesforce. The Connected App is configured so that if certain permission sets are added to a user, ...
1
vote
1answer
104 views

FieldPermissions not getting proper results

Note: I am admin User When I run the Below SOQL I am not getting records don't know why SELECT Id,SobjectType,Field,ParentId,PermissionsEdit,PermissionsRead,Parent.Name,Parent.IsOwnedByProfile,Parent....
0
votes
2answers
185 views

not able to create campaign record even I have crud PERMISSION

I want to create campaign record via script as new button was not there.But when i insert record it says Line: 1, Column: 20 Field is not writeable: Campaign.Name Even i am system admin .I have full ...
0
votes
1answer
155 views

How do I give Internal Users visibility to the 'Community Members' Related List on Accounts?

I need to give a certain group of internal users Read-Only access to each Account's Community Members. Ideally, I'd like to use a Permission Set to do this. Although I've added the 'Community ...

1
2 3 4 5
9