Ninja Coder Ninja Coder - 1 year ago 103
Java Question

How to check administrator of google apps domain?

I am using google oauth in my application, and I need to find out if that user is the admin of that domain. How do I do that?

Answer Source

You can use the Admin SDK Directory API's users.list() call while specifying a query parameter of isAdmin=true to pull a list of all super admin users in the Google Apps domain.

Update: with the new roleAssignments.list() call you can determine admin rights for super and delegated admins which offers a greater level of detail about which users have which admin privileges.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download