I followed this tutorial to enable single sign on for an app that installs through the Google Apps Marketplace. Now, what is the best way to check if the user is admin of the Google Apps domain?
Edit: I’m asking this because we can define links for “setup” and “manage” in the manifest. I don’t think those pages in my app should be accessible by all users of the Google Apps domain, only by the admin ones. And then I thought I’d just need to limit access to those pages based on who is admin of the domain.
You can take your admin user to your app via the optional step3 of the install process from the marketplace where you could manually request which user(s) they want to dedicate admin rights to within your app.