Is there a way to query a list of delegated administrators? I looked in the list of objects available to query in Force.com Explorer and can’t find any objects that look like they would have this information.
I’m open to any approach to get a list of delegated admins: using the metadata api, Apex code or SOQL.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
I finally got an official response from Salesforce that Delegated Administrators is not available via the API.
You can see a list of all unsupported metadata types here: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_unsupported_types.htm
Method 2
If you want to query using SOQL, then I am afraid there is no way of getting hold of delegated administrators. There is a “DelegatedApproverId” field on the user object that you can query, if that helps.
Anup
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0