idog
idog

Reputation: 863

How to get a list of user of domain after the admin install my app?

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

Upvotes: 1

Views: 300

Answers (1)

Steve Bazyl
Steve Bazyl

Reputation: 11672

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

Upvotes: 1

Related Questions