I was trying to retrieve the organization name of the user using the OAuth mechanism (in java on Google app engine). The scope that I used is
However this scope is giving Manage your domain settings
option, which seems very scary for the end customers. Attached below is the screenshot of that.
so, is there is a read only version of this scope, so that it can be only View your domain settings
I tried using the following scopes in the OAuth playground,
but every time I was bit by invalid oauth scopes URI. Attached below is the screenshot.
Any help is very much appreciated. Thanks in advance.
This is documented at [1]. You can use "https://www.googleapis.com/auth/admin.directory.user.readonly" scope. Org Unit will be listed under "orgUnitPath" of the returned user resource.
[1] - https://developers.google.com/admin-sdk/directory/v1/reference/users/list