Get users' assignments by using the existing users API request – GET /users/{userId}

📘

Assignments are stored in “roles” array of user object.

🚧

If you use POST /users request, then only new assignments with default validation dates will be stored. The validFrom and validTo dates will be automatically calculated based on the user assignment to company.
validFrom and validTo dates cannot be changed in POST /users request.
To create a new assignment with custom dates or update existing assignment you have to use the API request POST /users/assignement.
To delete an existing assignment you have to use DELETE /users/assignment.

❗️

Any changes in the “roles” array will not affect the assignments; only sending empty “organizations” will delete all assignments for the role and disable it.**