0

enter image description hereI have tried below soql but seems not be working.

SELECT Assignee.Name, PermissionSet.Id, PermissionSet.isOwnedByProfile, PermissionSet.Profile.Name, PermissionSet.Label
FROM PermissionSetAssignment
WHERE PermissionSetId
IN (SELECT ParentId
FROM ObjectPermissions
WHERE SObjectType = ‘Task’ AND
PermissionsRead = true)
4
  • Seems like it should be fine. Can you be more explicit what you mean by not working?
    – Adrian Larson
    Commented Sep 2, 2016 at 13:34
  • @AdrianLarson. Thanks for your reply. Its working fine for only objects which are showing in profile detail view as shown in above picture. But i need to get the list of users which have accessibility on Task and Event object but sadly these are not available on Profile detail page. Commented Sep 2, 2016 at 14:53
  • 2
    Isn't object level access to Task/Event open to everyone with maybe a few exceptions based on license type (Chatter Free User?). Commented Sep 2, 2016 at 14:57
  • @frontendloader. You mean we can only check the license type of Profile and if its not Chatter Free User. Then we can show all of them. Please correct me if i am wrong. Thanks!! Commented Sep 2, 2016 at 15:03

0

You must log in to answer this question.

Browse other questions tagged .