You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using a service account with domain-wide authority delegation, run this python sample code with userId=me or any email address within the organization, it will return an error:
If you have delegated domain-wide access to the service account and you want to impersonate a user account, use the with_subject method of an existing ServiceAccountCredentials object.
Summary
If using a service account with domain-wide authority delegation, run this python sample code with userId=me or any email address within the organization, it will return an error:
{'message': 'Precondition check failed.', 'domain': 'global', 'reason': 'failedPrecondition'}
Expected Behavior
Service account with correct scopes should be able to access any userIds
Actual Behavior
Service account with correct scopes always gets error
{'message': 'Precondition check failed.', 'domain': 'global', 'reason': 'failedPrecondition'}
Steps to Reproduce the Problem
Follow the instructions here https://developers.google.com/admin-sdk/directory/v1/guides/delegation#python
Specifications
The text was updated successfully, but these errors were encountered: