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.
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.
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
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.