Insufficent scope when trying to make a call using As-User header
AnsweredWhen I try to list a folder on behalf of another user I get the error message.
Bearer realm="Service", error="insufficient_scope", error_description="The request requires higher privileges than provided by the access token."
My scopes: root_readwrite,manage_managed_users,gcm
I test it with an account not connected to the account which have created the application, with a co-admin role. Of course I have as-user option activated on the application. Do I need to add another scope?
Alternatively, how to list root folders of all users belonging to an organization?
-
Hello ,
A few possibilities I can think of:
- If this is a JWT app, did you reauthorize it in the admin console after enabling the as-user header?
- Did you obtain a new token pair after enabling the as-user header?
- Are you using a primary admin or co-admin token with high enough privileges to make the call?
Please sign in to leave a comment.
Comments
3 comments