1

I want to access the field value checked/unchecked for all profiles through SOQL.

enter image description here

2 Answers 2

1

To access permissions you need to use PermissionSet sobject and ProfileId field on it.

To read more about it, check documentation

Example of soql for your question:

select Profile.Name, PermissionsViewAllData FROM PermissionSet where IsOwnedByProfile = true
1
  • Thankyou @alexander, due to the field being categorized in administrative permissions, i got confused Commented Jun 7, 2017 at 9:30
1

You can use below query:

Select Name, PermissionsViewAllUsers, PermissionsViewAllData From Profile

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .