---
title: Set whether the user has access to the material library
description: POST /nd/api/file/set_user_access_material_library: Set whether the user has the right to access the material library. Interface description, including path, method, parameters and return information.
slug: api-post-nd-api-file-set-user-access-material-library
lang: en
category: File API
category_order: 8
order: 123
api_method: POST
api_path: /nd/api/file/set_user_access_material_library
api_label: Set whether the user has access to the material library
keywords:
  - API
  - Set whether the user has access to the material library
  - /nd/api/file/set_user_access_material_library
---

# Set whether the user has permission to access the material library

| Properties | Values |
| --- | --- |
| HTTP method | `POST` |
| Interface path | `/nd/api/file/set_user_access_material_library` |
| Category | File API |

## Interface description

Interface path: `/nd/api/file/set_user_access_material_library`

HTTP method: `POST`


**HTTP method:** `POST`

#### GET request body parameters

Parameter name Comment (description)
userId user's id array type [usrId1, userId2] (required) string
can Whether it is accessible Numeric type (required) int Default 0, 0: Inaccessible, 1: Accessible
#### The return information is as follows

{"code":0,"success":true}

## 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: File API.
