IntegrationsGoogle workspaceActions
List Google Workspace org units
List organizational units in the Workspace directory.
org_units.list · Google Workspace · v1
Details
Scopes
https://www.googleapis.com/auth/admin.directory.orgunit.readonly
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
customer | string | No | minLength 1; maxLength 128 |
org_unit_path | string | No | minLength 1; maxLength 512 |
type | string | No | enum all | children | allIncludingParent |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
org_units | array<object> | Yes | maxItems 500 |
org_units[] | object | Yes | additionalProperties false |
org_units[].id | string | Yes | maxLength 256 |
org_units[].name | string | Yes | maxLength 256 |
org_units[].org_unit_path | string | Yes | maxLength 512 |
org_units[].parent_org_unit_path | string | No | maxLength 512 |
Raw schema
Input
{
"type": "object",
"additionalProperties": false,
"properties": {
"customer": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"org_unit_path": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"type": {
"type": "string",
"enum": [
"all",
"children",
"allIncludingParent"
]
}
}
}Output
{
"type": "object",
"additionalProperties": false,
"properties": {
"org_units": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"maxLength": 256
},
"name": {
"type": "string",
"maxLength": 256
},
"org_unit_path": {
"type": "string",
"maxLength": 512
},
"parent_org_unit_path": {
"type": "string",
"maxLength": 512
}
},
"required": [
"id",
"name",
"org_unit_path"
]
},
"maxItems": 500
}
},
"required": [
"org_units"
]
}