Get Department Roles
| Property | Value |
|---|---|
| Method | GET |
| Path | /nd/api/enterprise/dep_role |
| Authentication | Authorization: Bearer <access_token> |
Retrieves department roles within the authorized context. The source document does not list specific URL parameters; confirm enterprise and permission context against the token and deployment rules.
Response Fields
| Field | Type | Description |
|---|---|---|
roles |
array | Source lists id, enterpriseId, filePermission, managerPermission, default, nameEn, name |
code |
int | Business status |
| Success indicator | boolean | Source spells this sucess, unlike success in other endpoints; verify the actual response before integration |
The source repeats filePermission; it is shown once here. Do not invent undocumented permission-field schemas or enum values. Reading a role definition does not grant the caller that role. See Get Token.