You need to sign in to do that
Don't have an account?
Soumya Behera
Permission assignment through apex code
Hi Fokes,
I have an requirment where i need to assgin an permission based on the some codition. So can it be possible through code to assign permission set to the user.
Need to do by Apex coding. Please guide .
Regards,
Ranjan
I have an requirment where i need to assgin an permission based on the some codition. So can it be possible through code to assign permission set to the user.
Need to do by Apex coding. Please guide .
Regards,
Ranjan
myAssigneeId - User Id to whom you want to assign the permission set
You can write SOQL query to get the permission set Id in your apex class - https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_permissionset.htm
All Answers
myAssigneeId - User Id to whom you want to assign the permission set
You can write SOQL query to get the permission set Id in your apex class - https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_permissionset.htm