Method: orgunits.get

透過集合功能整理內容 你可以依據偏好儲存及分類內容。

擷取機構單位。

HTTP 要求

GET https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/orgunits/{orgUnitPath=**}

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
customerId

string

客戶 Google Workspace 帳戶的專屬 ID。身為帳戶管理員,您也可以使用 my_customer 別名來代表帳戶的customerIdcustomerId 也會在使用者資源中傳回。

orgUnitPath

string

機構單位的完整路徑 (減去開頭的 /) 或專屬 ID。

要求主體

要求主體必須為空白。

回應主體

如果成功,回應主體會包含 OrgUnit 的執行例項。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://apps-apis.google.com/a/feeds/policies/
  • https://www.googleapis.com/auth/admin.directory.orgunit
  • https://www.googleapis.com/auth/admin.directory.orgunit.readonly

詳情請參閱 OAuth 2.0 總覽