是否有人有一个脚本,可以遍历Google Admin中的OU并返回每个组和子组的设置?
我正在寻找一种简单的方法来比较多个OU上的设置。
发布于 2017-08-17 02:05:49
基于此documentation,要检索组织单位,请使用以下GET请求并包括Authorize requests中描述的授权。orgUnitPath查询字符串是此组织单位的完整路径。有关请求和响应的属性,请参阅API Reference。
如果您是检索组织单位的管理员,请使用my_customer。
GET https://www.googleapis.com/admin/directory/v1/customer/my_customer/orgunits/orgUnitPath如果您是为转售客户检索组织单位的经销商,请使用customerId。要获取customerId,请使用Retrieve a user操作。
GET https://www.googleapis.com/admin/directory/v1/customer/customerId/orgunits/orgUnitPathhttps://stackoverflow.com/questions/45697170
复制相似问题