The function call UserServiceFactory.getUserService().isUserAdmin() returns boolean indicating if the user is an administrator for this application. What does that mean exactly ?
-
the user is administrator for the Google Apps
domain used to authenticate ? -
the user is owner of the application at appengine.google.com ?
-
something else ?
The javadoc is not clear to me ….
isUserAdmin
boolean isUserAdmin()
Returns true if the user making this request is an admin for this application, false otherwise.
Throws:
java.lang.IllegalStateException – If the current user is not logged in.
I think this means the user is a user who has been added with any role at appengine.google.com.
The details of the roles is here
Also everyone who is added as an Admin in the app console if running on your own domain is an admin I believe.