Skip to main content
Call this API to add or modify settings that restrict employees, departments, or roles from viewing the Contacts.

API call description

In the DingTalk OA admin console, you can restrict members of a department from viewing the Contacts. This API extends that capability. It can restrict not only members of a department, but also individual employees and roles, from viewing the Contacts.
The visibility restriction settings configured through this API are stored independently from those configured in the OA admin console. The final effect is a logical OR of both. For example, if the same department is set to “view self only” by either this API or the OA admin console, the department will be restricted to viewing self only.

Request

Basic information

Request header

Request body

Request example

HTTP
Java
Python
PHP
Go
Node.js
C#

Response

Response body

Response body example

Error codes

If an error is returned when calling this API, look up the solution in the Global error codes documentation based on the error message.