Archives or unarchives the user with the specified id.

POST

Archived objects can not be used any longer but still exist for being referenced by other entities.

Required Permissions: The user must be an admin or have project-manage-config:write permissions.

Path parameters

userIdstringRequired

Id of the user which will be changed.

Request

This endpoint expects an object.
isArchivedbooleanRequired

Flags the entity as archived.

Response

OK

firstNamestringOptional=0 characters

The firstname of the user.

lastNamestringOptional=0 characters

The lastname of the user.

birthDatedatetimeOptional

The birthdate of the user.

genderstringOptional=0 characters

The gender of the user.

titlestringOptional=0 characters

The title of the user.

positionstringOptional=0 characters

The position of the user.

languagestringOptional=0 characters

The language preference of the user in ISO 639-1 format.

idstringOptional

The id of the user.

statusobjectOptional

The status of the user.

createdOndatetimeOptional

The date this user was created.

createdBystringOptional

The id of the user who created this user.

updatedOndatetimeOptional

The date when this user was last updated.

updatedBystringOptional

The id of the user who updated the entity.

isArchivedbooleanOptional

Whether this user is archived. Archived users are automatically inactive and only exist for reference purposes.

isDeactivatedbooleanOptional

Whether the user has been deactivated.

deactivatedOndatetimeOptional

The date the user was deactivated.

hasImagebooleanOptional

Whether the user has uploaded a profile image.

shouldMigrateToConnectbooleanOptional

Whether the user should be migrated to Connect.

userContactInfoslist of objectsOptional

The contact information assigned to this user.

resourceVersionlongOptional

The version of the entity, updated on every modification, to the ticks in UTC. Not identical to UpdatedOn.

tagslist of objectsOptional

The tags of this user.

teamslist of objectsOptional

The teams the user is associated to.

isExternalbooleanOptional

True if this entity is coming from an external workspace (awork Connect).

accountIdstringOptional

The account id of the user. Only used internally.