1

I published an app to the google marketplace. I can know which domain installed my app through the licenseNotification, but to get the list of users from the usersService I need the mail of the admin. How can I get who the admin of the domain or the list of all users?

I checked those two questions:

Is there any way to get the information about admin who installed my app?

Google_Service_Directory - (403) Not Authorized to access this resource/api

But i'm facting a domain which the admin is not admin@some_domain.com

Community
  • 1
  • 1
idog
  • 863
  • 9
  • 18
  • To list the users of domain, its not enough just to get admin email, you should be admin of the domain. or admin of the domain should give you domain wide delegation and impersonate you. To get the admin of the domain, even in admin console, only admin has rights to check admin of the account. – SGC May 11 '15 at 21:43
  • I refer to a situation that the admin of the domain install my app from marketplace to all the users in the domain, in this case with the ServiceAccount i can list the users of the domain with the permissions of the admin, my problem is that I don't know the mail of the admin. – idog May 12 '15 at 08:08

1 Answers1

1

See comments on https://plus.sandbox.google.com/u/0/+AlexanderVorkov/posts/gNGvH5G15QR

The solution right now is to configure a setup URL for your application. This URL is displayed to the admin at the end of the installation. You can use that setup process to gather the missing info (admin identity/email) and do whatever you need to finalize setup.

There is the possibility that the admin won't visit that URL right away. Your app needs to be robust and handle cases where the admin hasn't completed setup yet users still try to access the app (e.g. treat that setup as optional, give end-users a friendly message asking them to contact their admin, etc.)

Steve Bazyl
  • 11,002
  • 3
  • 21
  • 24