I want to programmatically retrieve a list of all the app administrators from within the app. However, I've found no APIs in User Service section that can accomplish this. Is there any way or any undocumented API to do this?
No, there is not an API to programatically get a list of administrators for your app. However, you could create an augmented user model which includes extra information like this.
I'm not sure why you need a list of all admins, but if you just wanted to e-mail them then you could use the send_mail_to_admins()
function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With