All Products
Search
Document Center

Identity as a Service:ListOrganizationalUnits

Last Updated:Dec 17, 2024

Queries the information about organizational units in Identity as a Service (IDaaS) Employee IAM (EIAM) by page.

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 parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance.

idaas_ue2jvisn35ea5lmthk267xxxxx
PageNumberlongNo

The number of the page to return. Default value: 1.

1
PageSizelongNo

The number of entries to return on each page. Default value: 20.

20
OrganizationalUnitIdsarrayNo

The IDs of organizational units.

stringNo

The ID of organizational unit.

ou_wovwffm62xifdziem7an7xxxxx
OrganizationalUnitNamestringNo

The name of the organizational unit.

name_001
OrganizationalUnitNameStartsWithstringNo

Organization name, matching left

name
ParentIdstringNo

The ID of the parent organizational unit.

ou_wovwffm62xifdziem7an7xxxxx

Response parameters

ParameterTypeDescriptionExample
object

The response data.

RequestIdstring

The ID of the request.

0441BD79-92F3-53AA-8657-F8CE4A2B912A
TotalCountlong

The number of entries in the list.

100
OrganizationalUnitsarray<object>

The list of data objects of organizational units.

OrganizationalUnitobject

The data object of the organizational unit.

OrganizationalUnitIdstring

The ID of the organizational unit.

ou_wovwffm62xifdziem7an7xxxxx
ParentIdstring

The ID of the parent organizational unit.

ou_wovwffm62xifdziem7an7xxxxx
OrganizationalUnitExternalIdstring

The external ID of the organizational unit. The external ID can be used by external data to map the data of the organizational unit in IDaaS EIAM. By default, the external ID is the organizational unit ID.

For organizational units with the same source type and source ID, each organizational unit has a unique external ID.

ou_wovwffm62xifdziem7an7xxxxx
OrganizationalUnitSourceTypestring

The source type of the organizational unit. Valid values:

  • build_in: The organizational unit was created in 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.

idaas_ue2jvisn35ea5lmthk267xxxxx
CreateTimelong

The time when the organizational unit was created. This value is a UNIX timestamp. Unit: milliseconds.

1652085686179
UpdateTimelong

The time when the organizational unit was last updated. The value is a UNIX timestamp. Unit: milliseconds.

1652085686179
Descriptionstring

The description of the organizational unit.

Test organizational unit
InstanceIdstring

The ID of the instance.

idaas_ue2jvisn35ea5lmthk267xxxxx
Leafboolean

Indicates whether the node is a leaf node.

false

Examples

Sample success responses

JSONformat

{
  "RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
  "TotalCount": 100,
  "OrganizationalUnits": [
    {
      "OrganizationalUnitId": "ou_wovwffm62xifdziem7an7xxxxx",
      "OrganizationalUnitName": "test_organizationalUnit_name",
      "ParentId": "ou_wovwffm62xifdziem7an7xxxxx",
      "OrganizationalUnitExternalId": "ou_wovwffm62xifdziem7an7xxxxx",
      "OrganizationalUnitSourceType": "build_in",
      "OrganizationalUnitSourceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
      "CreateTime": 1652085686179,
      "UpdateTime": 1652085686179,
      "Description": "Test organizational unit\n",
      "InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
      "Leaf": false
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2023-06-21The request parameters of the API has changed. The response structure of the API has changedView Change Details
2023-04-04The response structure of the API has changedView Change Details
2023-03-21The request parameters of the API has changed. The response structure of the API has changedView Change Details