All Products
Search
Document Center

Identity as a Service:GetOrganizationalUnit

Last Updated:Jul 31, 2025

Queries the information of an organizational unit.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /v2/{instanceId}/{applicationId}/organizationalUnits/{organizationalUnitId} HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
AuthorizationstringYes

The authentication information. Format: Bearer ${access_token}. Example: Bearer ATxxxx.

Bearer AT8csE2seYxxxxxij
instanceIdstringYes

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx
applicationIdstringYes

The application ID.

app_mkv7rgt4d7i4u7zqtzev2mxxxx
organizationalUnitIdstringYes

The ID of the organizational unit.

ou_wovwffm62xifdziem7an7xxxxx

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

instanceIdstring

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx
organizationalUnitIdstring

The ID of the organizational unit.

ou_wovwffm62xifdziem7an7xxxxx
organizationalUnitNamestring

The name of the organizational unit.

name001
parentIdstring

The ID of the parent organizational unit.

ou_wovwffm62xifdziem7an7xxxxx
organizationalUnitExternalIdstring

The external ID of the organizational unit.

id_wovwffm62xifdziem7an7xxxxx
organizationalUnitSourceTypestring

The source type of the organizational unit. Valid values:

  • build_in: The organizational unit was created in Identity as a Service (IDaaS).
  • ding_talk: The organizational unit was imported from DingTalk.
  • ad: The organizational unit was imported from Microsoft Active Directory (AD).
  • ldap: The organizational unit was imported from a Lightweight Directory Access Protocol (LDAP) service.
build_in
organizationalUnitSourceIdstring

The source ID of the organizational unit.

id_wovwffm62xifdziem7an7xxxxx
createTimelong

The time when the organizational unit was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1652083425923
updateTimelong

The time when the organizational unit was last updated. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1652083425923
descriptionstring

The description of the organizational unit.

xxxxx

Examples

Sample success responses

JSONformat

{
  "instanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
  "organizationalUnitId": "ou_wovwffm62xifdziem7an7xxxxx",
  "organizationalUnitName": "name001",
  "parentId": "ou_wovwffm62xifdziem7an7xxxxx",
  "organizationalUnitExternalId": "id_wovwffm62xifdziem7an7xxxxx",
  "organizationalUnitSourceType": "build_in",
  "organizationalUnitSourceId": "id_wovwffm62xifdziem7an7xxxxx",
  "createTime": 1652083425923,
  "updateTime": 1652083425923,
  "description": "xxxxx"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-10-24The internal configuration of the API is changed, but the call is not affectedView Change Details