0

是否有人有一个脚本可以通过 Google Admin 中的 OU 并返回每个组和子组的设置?
我正在寻找一种简单的方法来比较多个 OU 上的设置。

4

1 回答 1

0

根据此文档,要检索组织单位,请使用以下GET请求并包括授权请求中描述的授权。orgUnitPath查询字符串是此组织单位的完整路径。有关请求和响应属性,请参阅API 参考

如果您是检索组织单位的管理员,请使用my_customer.

GET https://www.googleapis.com/admin/directory/v1/customer/my_customer/orgunits/orgUnitPath

如果您是为转售客户检索组织单位的经销商,请使用 customerId。要获取 customerId,请使用检索用户操作。

GET https://www.googleapis.com/admin/directory/v1/customer/customerId/orgunits/orgUnitPath
于 2017-08-16T18:05:48.997 回答