Skip to navigation

Remove user from office

View as Markdown

Removes a user from a single office. You specify the office from which you want to remove the user in the designatedOffice request body.

The user still maintains their other office, region, company, and account associations.

Note: You cannot remove a user from their default office. You must first assign the user a different default office by using the Users: updateUser method.

Permissions

You must have at least one of the following permissions set to true, depending on the level of the user that you want to add or remove:

  • canManageMemberLowerAccessLevel: Users can add or remove other users who have a lower access level than their own (in offices or regions that they oversee) from a region or office.
  • canManageMemberSameAccessLevel: Users can modify other users who have the same access level as their own (in offices or regions that they oversee or belong to) from a region or office.

Authentication

Authorizationstring

JWT Authorization header using the Bearer scheme. Example: “Authorization: Bearer {token}”

Path parameters

userIdintegerRequired
The ID of the user to remove.
accountIdstringRequired

The globally unique identifier (GUID) for the account.

Request

Details of the office that the user will be removed from
officeIdintegerRequired

(Required) The ID of the office. This is the ID that the system generated when you created the office.

Response

User successfully removed from the office.

Errors

400
Bad Request Error
401
Unauthorized Error