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
364 Views Asked by TMGooglePractice At
2
There are 2 best solutions below
0
David Cifuentes
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.
Related Questions in GOOGLE-APP-ENGINE
- Deployment through app engine, cloud sql database, problem connecting with server code, doesn't connect
- Jetty 12 idle timeout limited to 30 seconds when upgrading to Java 21 in Google App Engine Standard Environment
- Unable to deploy to GAE from Github Actions
- Migrating Google App Engine - Eclipse Java 8
- How to use Oauth in order to log‑in on .googleapis.com on almost any arbitrary endpoints domains from the web browser?
- Running gcloud app deploy and getting PERMISSION_DENIED 'compute.regions.get', despite having Owner and Compute admin permissions
- Spring security CORS configuration not working after deploying to App Engine
- Google App Engine: manual scaling with one instance suddenly created multiple instances
- gcloud.app.deploy Error Response: [13] Failed to create cloud build: invalid bucket
- gcloud.app.deploy Error Response: [13] default Cloud Build service account or user-specified service account does not have access to the bucket
- GCP Java dev_appserver Can't make API call memcache.Get in a thread that is neither the original request thread nor a thread created by ThreadManager
- How to correlate and aggregate logs in Google App Engine Python 3?
- App Engine Python3 db / ndb & eventual consistency
- How do I connect to Google Cloud mySQL from App Engine using Django-Environ?
- How to deploy my fast api with llama 2 on app engine
Related Questions in GOOGLE-APPS
- Google Sheets Script - Macro not sending network request when activated by checkbox edit listener
- Google Sheet different cell ranges protection and access levels (all, specific, email-based)
- Protecting sheet. Selective editing permissions in Google Sheet
- How can I merge documents with Google Apps Script while keeping the order and proper sequencing of numbered lists?
- Google Apps Script. Transfer data from current active sheet to another by URL (on Edit event)
- Creating a Script in google apps script to launch a google form
- Google hasn’t verified this app - but I'm just sharing code?
- Concerned about end of support for Python runtimes (python27 and python37)
- Appscript webapp returns authentication error when an unauthenticated google account is logged in another tab
- How to remove border from buttons in google apps script?
- How to center align a button using CardService?
- Exception: Service Spreadsheets failed while accessing document with id
- script to activate next/previous sheet
- google app script took too long to respond and field to serve web app
- Google Calendar API: No event details due to service account access role
Related Questions in GAE-USERSERVICE
- how does get_current_user work
- Google UserService logoutUrl with Angular #
- Google App Engine - Multiple User sessions
- How to automatically log out from Google App Engine application after logging out of other Google serivices
- What user is provided by App Engine Devserver
- How does UserService class work?
- Custom User login in AppEngine
- Access GAE datastore from background thread
- How to capture email address in app engine?
- Can User Role from Google Apps be retrieved inside Google App Engine Application
- How to use OAuth2 / OpenID Connect with UserService?
- App Engine returns error when used with User Services
- AppEngine Cloud Endpoints and custom Users service
- GAE BlobStore : After Uploading a file successfully, google appengine throws null exception when calling user.getEmail()
- Multiple Auth Providers with AppEngine, Webapp2, and Cloud Endpoints Proto Datastore
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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: