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

How can I deploy a permission set with connected apps?

I am trying to deploy a permission set that has some connected apps assigned. However, after deploying to upper environment the connected apps are missing from Assigned Connected Apps. Any suggestions ...
user avatar
  • 1
0 votes
0 answers
23 views

Why is my test class saying my users do not have access to the Task object?

So I've been having this issue with a test class where two of my tests won't pass due to an error saying INSUFFICIENT_ACCESS_OR_READONLY. Here is my trigger and test class. This is my first attempt at ...
user avatar
0 votes
0 answers
38 views

no CustomField named Event.IsVisibleInSelfService found - Managed Package

Trying to upgrade the managed package from another Org getting bellow error. XXYY_Manager: In field: field - no CustomField named Event.IsVisibleInSelfService found XXYY_Manager is a Permission set. i ...
user avatar
1 vote
2 answers
76 views

Updating Permissions and Profiles through Visual Studio Code

I am new to VS Code and trying to copy Permission Set permissions into a Profile so that we don't have too many permission sets. I thought rather than checking in SF and clicking back and forth I can ...
user avatar
0 votes
0 answers
27 views

Allow Audience visibility to be set with (Custom) Permission Sets

This was discussed in this idea But when I try to implement it I dont see my custom permission sets in the list, following are screenshot. Typing only nothing is shown Although I have permission sets ...
user avatar
0 votes
0 answers
37 views

Show/Hide field on Detail Page for different users without changing Profile Salesforce

I have a use case where we have 2 users with same profile (User 1 and User 2). User 1 should see the field Field1__c and for User 2 the field1__c should be hidden. At the Profile level - the Field1__c ...
user avatar
  • 492
0 votes
2 answers
84 views

How to give Edit access to files to non-system admin users?

Purpose for this access is because the super users want to edit the File names to a proper naming convention that were uploaded in the Opportunity object. Permission sets I tried to assign: App ...
user avatar
  • 1,081
0 votes
1 answer
50 views

Delete Permission on ON CRUD access at object level for users

I have a requirement i have custom object(Broker__c) and i have Profile(Sales) we have around 100 users in the profile . We need to remove delete permission for 10 users. The object has all the CRUD ...
user avatar
  • 55
0 votes
0 answers
52 views

Permission set not availble in Change set!

While deploying a community, got the below error In field: permissionSet - no PermissionSet named <permission_Set_name> found I created an outbound change set, after "ADD" under ...
user avatar
1 vote
0 answers
33 views

Best Practices for updating permission sets in managed package to reduce and expand permissions?

Per this article, we cannot update permission sets in managed packages: https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/packaging_perm_sets_profile_setttings.htm ...
user avatar
0 votes
0 answers
20 views

Automating Permission Sets for packaging with dependencies?

I am looking to create permission sets for my managed packages. I am finding it very time-consuming and error-prone for me to manually make sure that the permission set I am creating has all the ...
user avatar
0 votes
1 answer
215 views

Code review: Automatically add/remove Permission Set Assignment (Apex Trigger)

I have created an "After Trigger" to automatically assign/remove a permission set to a user. The trigger works fine, but from what I understand, line 15 of my code is not best practice: ...
user avatar
0 votes
2 answers
82 views

Cannot enable a section in profile System Administrator

Run Flows I cannot check these box in the profile System administrator..Should I use permission sets?
user avatar
0 votes
1 answer
44 views

Profile Permissions overriding dashboard folder permissions

I have a requirement to restrict access for a user for a dashboard folder. On basis of that, I have given only view access to that user under our dashboard folder Now, when I log in as that user, I ...
user avatar
0 votes
1 answer
37 views

How to assign field access to multiple permission sets at a time

I have a requirement where i need to provide read and edit access to object fields in 18 different permission sets. This looks like lot of manual work and will consume lot of time. Is there anyway ...
user avatar
0 votes
0 answers
27 views

Users unable to search accounts by custom fields

We have users who are unable to search for accounts based off of custom fields. No drop down options show up when they try to search. They can only search by account name which is very limiting for ...
user avatar
1 vote
1 answer
89 views

Permission Sets automatically updated by Spring22 migration: rights removed

One of our production org has been automatically migrated to Spring22 by Salesforce last week-end The following jobs has been run by SF platform during the update (audit trail extract) After this ...
user avatar
0 votes
2 answers
50 views

Can you access PermissionSetNames from PermissionSetGroup using APEX?

this one should be a quick one. We had a request from our Admins to use PermissionSetGroups rather than merely using the PermissionSets. I'm messing around with it a bit and noticed that the ...
user avatar
  • 1,268
0 votes
0 answers
32 views

Using Trigger, Is there a way to give all the record permissions to one user (record owner) and the rest users just read-only permission?

When the opportunity record is closed-won, only the user (owner of that record) should have the access to edit that record and, the other users should have only read-only access with that record. I've ...
user avatar
  • 1
0 votes
0 answers
38 views

Permission set to enable delegated admins to activate/deactivate users

I want to assign a permission set to enable delegated admin to activate/deactivate other users, but I don't want delegated admins to have access to profile settings, and other security features like ...
user avatar
-2 votes
1 answer
55 views

If we installed the package for all users, but we want the tabs access be removed from every profile, how can we achieve that?

My clients ask me. If we installed the package for all users, but we want the tabs access be removed from every profile, how can we achieve that? Is there any faster way rather than going manually ...
user avatar
  • 13.3k
0 votes
1 answer
81 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 ...
user avatar
  • 29
9 votes
1 answer
279 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()+':'+...
user avatar
  • 62.2k
0 votes
0 answers
19 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. ...
user avatar
1 vote
0 answers
47 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: ...
user avatar
0 votes
0 answers
35 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 ...
user avatar
  • 342
0 votes
0 answers
23 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 ...
user avatar
  • 1
0 votes
1 answer
108 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 ...
user avatar
  • 103
1 vote
1 answer
350 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), $...
user avatar
  • 113
0 votes
1 answer
219 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 ...
user avatar
  • 89
0 votes
0 answers
15 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, ...
user avatar
  • 1
0 votes
0 answers
35 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 ...
user avatar
1 vote
1 answer
180 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( ...
user avatar
1 vote
0 answers
26 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 ...
user avatar
4 votes
1 answer
213 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 ...
user avatar
4 votes
1 answer
134 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 ...
user avatar
0 votes
0 answers
62 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 ...
user avatar
  • 1
2 votes
2 answers
213 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 (...
user avatar
0 votes
0 answers
35 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 ...
user avatar
0 votes
1 answer
77 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?
user avatar
  • 63
4 votes
1 answer
82 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')) ...
user avatar
  • 45
0 votes
1 answer
272 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 (...
user avatar
  • 45
1 vote
0 answers
45 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, ...
user avatar
0 votes
0 answers
26 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 ...
user avatar
0 votes
1 answer
427 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 ...
user avatar
  • 62.2k
0 votes
0 answers
35 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 ...
user avatar
  • 130k
3 votes
1 answer
356 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: ...
user avatar
0 votes
1 answer
65 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 ...
user avatar
  • 9
0 votes
2 answers
186 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 ...
user avatar
0 votes
3 answers
189 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' ...
user avatar
  • 1

1
2 3 4 5
9