---
title: Get a list of department roles
description: GET /nd/api/enterprise/dep_role: Get the department role list interface description, including path, method, parameters and return information.
slug: api-get-nd-api-enterprise-dep-role
lang: en
category: Enterprise API
category_order: 8
order: 143
api_method: GET
api_path: /nd/api/enterprise/dep_role
api_label: Get a list of department roles
keywords:
  - API
  - Get a list of department roles
  - /nd/api/enterprise/dep_role
---

# Get the list of department roles

| Properties | Values |
| --- | --- |
| HTTP methods | `GET` |
| Interface path | `/nd/api/enterprise/dep_role` |
| Category | Enterprise API |

## Interface description

Interface path: `/nd/api/enterprise/dep_role`

HTTP method: `GET`


**HTTP method:** `GET`

#### URL parameters

Parameter name Comment (description)
#### Return field description

Attribute name type description
roles []array { id, filePermission,enterpriseId,filePermission,managerPermission,
default,nameEn,name}
code int
successboolean

## Call instructions

- Before calling, you need to complete [Get token](api-post-api-token-do.md) or the corresponding login-free authentication, and carry `Authorization: Bearer <access_token>` in the request header.
- If there are differences in parameters and return fields due to deployment versions, the actual private cloud API documents and joint debugging results should prevail.
- Category: Enterprise API.
