As described in these documentation[1][2][3], you can always get information about the current user and compare the values to the user admin.
>From the return value of the users.get_current_user(), this Stackoverflow link[4] suggests that the email address of the particular user can be retrieved. However, I gathered that this may involve using APIs which involve OAuth such as these[5][6] as you have rightly alluded, to be able to get some more details from the User such as email address. Particularly about retrieving the User's First and Last names, I understand the Python App Engine API module described here[7] is actually only used for storing User IDs as properties in your Datastore. For fetching other User details like the Last names and First names, you might need to use other APIs such as Directory API[6]. [1]https://cloud.google.com/appengine/docs/standard/python/users/adminusers [2]https://cloud.google.com/appengine/docs/standard/python/refdocs/modules/google/appengine/api/users#is_current_user_admin [3]https://cloud.google.com/appengine/docs/standard/python/refdocs/google.appengine.api.users.html#google.appengine.api.users.get_current_user [4]https://stackoverflow.com/questions/23052790/is-there-a-way-to-map-gae-user-object-and-google-userid [5] https://developers.google.com/+/web/api/rest/latest/people/get [6] https://developers.google.com/admin-sdk/directory/v1/reference/#Users [7]https://cloud.google.com/appengine/docs/standard/python/refdocs/google.appengine.api.users -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/cb0beef3-51b6-4e97-81d3-73a6f4ad4226o%40googlegroups.com.
