GetOrganizationalUnit

Updated at:

Queries the details of a specified organizational unit.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

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

Path Parameters

Parameter

Type

Required

Description

Example

instanceId

string

Yes

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx

applicationId

string

Yes

The application ID.

app_mkv7rgt4d7i4u7zqtzev2mxxxx

organizationalUnitId

string

Yes

The organizational unit ID.

ou_wovwffm62xifdziem7an7xxxxx

Request parameters

Parameter

Type

Required

Description

Example

Authorization

string

Yes

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

Bearer AT8csE2seYxxxxxij

Response elements

Element

Type

Description

Example

object

The response.

instanceId

string

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx

organizationalUnitId

string

The organizational unit ID.

ou_wovwffm62xifdziem7an7xxxxx

organizationalUnitName

string

The organizational unit name.

name001

parentId

string

The parent organizational unit ID.

ou_wovwffm62xifdziem7an7xxxxx

organizationalUnitExternalId

string

The external ID.

id_wovwffm62xifdziem7an7xxxxx

organizationalUnitSourceType

string

The source type. Valid values:

  • build_in: Self-managed.

  • ding_talk: Imported from DingTalk.

  • ad: Imported from AD.

  • ldap: Imported from LDAP.

build_in

organizationalUnitSourceId

string

The source ID.

id_wovwffm62xifdziem7an7xxxxx

createTime

integer

The creation time. The value is a UNIX timestamp in milliseconds.

1652083425923

updateTime

integer

The last update time. The value is a UNIX timestamp in milliseconds.

1652083425923

description

string

The description.

R&D department

Examples

Success response

JSON format

{
  "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": "研发部门"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.