I have a Google App Engine application for the use of Google Apps users. For that I need the roles and priviledges of users to be reflected in Google App Engine application. But using UserServices API I am only able to retrieve nick name, email ID all the details. But I found no way for retrieving the Role assigned to a particular user inside my GAE application.
Can User Role from Google Apps be retrieved inside Google App Engine Application
319 views Asked by TMGooglePractice At
2
There are 2 answers
0
On
If you want to use the Google Apps admin roles (super admin or delegated admin) instead of the App Engine permissions you should implement it yourself by synchronizing your own users entities in the datastore against the directory API part of the admin SDK of Google Apps, specifically with the fields isAdmin or isDelegatedAdmin.
There is no way to get the exact role of the user that you have assigned in your GAE dashboard, but you can check if the currently logged in user is on that list. If you are using Python here is how you can achieve that: