+ Start a Discussion
MoinKMoinK 

query all profiles that have access to a record type

Hi All, I need to query all the profiles that have access to a particular record type called "ABD" . How do I query this data?
Nishant Prajapati 10Nishant Prajapati 10
Hi Moink
You can use Metadata API to fetch all the profiles according to Record type visiblity.
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_profile.htm (http://​https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_profile.htm)
Raj VakatiRaj Vakati

This is possible through Apex, but not SOQL --- and no Metadata API required.  Refer this link 

If you use metadata again its lot of work .. 

https://salesforce.stackexchange.com/questions/5063/finding-if-which-users-have-a-record-type-available-to-them-using-soql

 
MoinKMoinK
Thanks both!