My app provides different access levels to users based on what groups they belong to. Therefore, my app needs access to the Admin SDK's directory_v1/groups/list api
. For example, I'd like to call:
https://www.googleapis.com/admin/directory/v1/groups?userKey={USER_EMAIL}&key={YOUR_API_KEY}
I'm weary of enabling the Admin SDK api and generating keys because I don't see any granular controls on what methods the keys are allowed to use.
Is there any way I can get access to what groups a user belongs to without using the Admin SDK, or maybe lock down access to the API so that my app only has access to the list of groups a user belongs to and not the full abilities of the Admin SDK?
Thanks