Method: orgunits.get

組織部門を取得します。

HTTP リクエスト

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

この URL は gRPC Transcoding 構文を使用します。

パスパラメータ

パラメータ
customerId

string

お客様の Google Workspace アカウントの一意の ID。アカウント管理者として、my_customer エイリアスを使用してアカウントの customerId を表すこともできます。customerId は、Users リソースの一部としても返されます。

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

詳細については、承認ガイドをご覧ください。