Update User's Departments
Updates information of Departments that a User belongs to, and Job Title information related to the Department.
Method | PUT |
---|---|
URL | https://{subdomain}.kintone.com/v1/userOrganizations.json |
Authentication | Password Authentication, Session Authentication |
Content-Type | application/json |
Permissions
Only Administrators can use this API.
For more information on Administrators, refer to the following article:
Types of Administrators
Request Parameters
Parameter | Value | Required | Description |
---|---|---|---|
userOrganizations | Array of Objects | Yes | A list of objects containing users that will have their affiliated departments updated. |
userOrganizations[].code | String | Yes | The User's code (log-in name). The maximum limit is 128 characters. Values consisting of only whitespaces or null are not allowed. |
userOrganizations[].organizations | Array of Objects | Yes | An array of organizations objects containing data of Departments the users will be a member of. The maximum limit is 100 objects. Any existing Department that is not set for this parameter will result in the user being removed from that department. If the array is empty, the user will not be a member of any Department. |
userOrganizations[].organizations[].orgCode | String | Conditional | The Department Code of the Department to add the user to. The maximum limit is 128 characters. Required when specifying a Job Title. |
userOrganizations[].organizations[].titleCode | String | The code of the Job Title. The maximum limit is 128 characters. |
Sample Request
|
|
curl Sample
|
|
Sample Response
|
|
Limitations
- Deadlocks may occur if the following are operated simultaneously:
- A System Administrator imports a CSV file through the GUI to update users in the domain.
For more information, refer to the following link:
Changing Data Through a File - The Update User's Departments API is used.
- A System Administrator imports a CSV file through the GUI to update users in the domain.