1.Write query on PermissionSetLicense to get the corresponding id of permission set license name. In my case I want to know the id of the Tableau CRM Plus license.
SELECT Id, DeveloperName, MasterLabel, TotalLicenses, Status FROM PermissionSetLicense
2.Now query on the PermissionSetLicenseAssign object using the id got from the first query.The sample query is below.
SELECT Id,AssigneeId ,Assignee.Name,PermissionSetLicenseId, CreatedDate,
CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp
FROM PermissionSetLicenseAssign where PermissionSetLicenseId='0PL100000008sUwGAI'
The sample looks like below
this is very useful tip thanks for sharing , but need to know how many custom permissions available in the system , and respective user . can you please share it if possible.
ReplyDeleteYou mean custom permissions set or custom permissions
DeleteRefer this for custom permission
Deletehttps://www.srinivas4sfdc.com/2020/01/how-to-access-custom-permission-in-apex.html