Refer to API Keys. Ensure that the role associated with the API key has the necessary permissions to sync user data.
| Parameter | Type | Description |
|---|---|---|
dataType | 'user' | 'department' | Required. Type of data being pushed. Use user for pushing user data. |
matchKey | 'username' | 'email' | 'phone' | Optional. Used to match existing system users based on the specified field. |
records | UserRecord[] | Required. Array of user data records. |
| Parameter | Type | Description |
|---|---|---|
uid | string | Required. Unique identifier for the source user data, used to associate the source data with the system user. Immutable for a user. |
nickname | string | Optional. User's nickname. |
username | string | Optional. Username. |
email | string | Optional. User's email address. |
phone | string | Optional. User's phone number. |
departments | string[] | Optional. Array of department UIDs the user belongs to. |
isDeleted | boolean | Optional. Indicates whether the record is deleted. |
<field> | any | Optional. Custom fields in the user table. |
Pushing department data requires the Departments plugin to be installed and enabled.
| Parameter | Type | Description |
|---|---|---|
dataType | 'user' | 'department' | Required. Type of data being pushed. Use department for department data. |
records | DepartmentRecord[] | Required. Array of department data records. |
| Parameter | Type | Description |
|---|---|---|
uid | string | Required. Unique identifier for the source department data, used to associate the source data with the system department. Immutable. |
title | string | Required. Department title. |
parentUid | string | Optional. UID of the parent department. |
isDeleted | boolean | Optional. Indicates whether the record is deleted. |
<field> | any | Optional. Custom fields in the department table. |