Does someone have a script that will go thru the OUs in Google Admin and return the settings for each group and subgroups?
I am looking for an easy way to compare the settings on multiple OUs.
Asked
Active
Viewed 42 times
0

Scott
- 1
1 Answers
0
Based from this documentation, to retrieve an organizational unit, use the following GET
request and include the authorization described in Authorize requests. The orgUnitPath
query string is the full path for this organizational unit. For the request and response properties, see the API Reference.
If you are an administrator retrieving an organizational unit, use my_customer
.
GET https://www.googleapis.com/admin/directory/v1/customer/my_customer/orgunits/orgUnitPath
If you are a reseller retrieving an organizational unit for a resold customer, use the customerId. To get the customerId use the Retrieve a user operation.
GET https://www.googleapis.com/admin/directory/v1/customer/customerId/orgunits/orgUnitPath

abielita
- 13,147
- 2
- 17
- 59