function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Siddharth LakhotiaSiddharth Lakhotia 

How to assign permission set to a particular role when a user is created is salesforce ?

Hi,

I have a situation , where-in I need to restrict the access to reports to specific Sales rep in salesforce.

However managers ( differed by roles ) can acesss. I need to give a permission set to users with manager roles.

How can I write an Apex trigger to assign permission set to get automatically assigned to a role or public group


 
Deepu BDeepu B
Hi Lakhotia,

Yoiu may try an app downloaded from appexchange. It will work for you i think. Below is the link for the same.

https://appexchange.salesforce.com/appxListingDetail?listingId=a0N30000008XYMlEAO

Thanks,
Deepu