Update a user
Manages an existing user. Managing a user includes enabling or disabling the user, changing the user's full name or updating the user's access control.
Path Parameters
- user_id int64 required
The Clumio-assigned ID of the user to be updated.
- application/json
Request Body
access_control_configuration_updates object
- full_name string
The full name of the user that is to replace the existing full name. For example, enter the user's first name and last name.
- is_enabled boolean
If
true
, enables a user who has been disabled from Clumio, returning the user to its previous "Activated" or "Invited" status. Iffalse
, disables a user from Clumio. The user will not be able log in to Clumio until another Clumio user re-enables the account.
- 200
- default
Success
- application/api.clumio.users=v2+json
- Schema
- Example (from schema)
Schema
_embedded object
- _etag string
ETag value
_links object
access_control_configuration object[]
- email string
The email address of the Clumio user.
- full_name string
The first and last name of the Clumio user. The name appears in the User Management screen and is used to identify the user.
- id string
The Clumio-assigned ID of the Clumio user.
- inviter string
The ID number of the user who sent the email invitation.
- is_confirmed boolean
Determines whether the user has activated their Clumio account. If
true
, the user has activated the account. - is_enabled boolean
Determines whether the user is enabled (in "Activated" or "Invited" status) in Clumio. If
true
, the user is in "Activated" or "Invited" status in Clumio. Users in "Activated" status can log in to Clumio. Users in "Invited" status have been invited to log in to Clumio via an email invitation and the invitation is pending acceptance from the user. Iffalse
, the user has been manually suspended and cannot log in to Clumio until another Clumio user reactivates the account. - last_activity_timestamp string
The timestamp of when the user was last active in the Clumio system. Represented in RFC-3339 format.
- organizational_unit_count int64
The number of organizational units accessible to the user.
{
"_embedded": {
"read-role": [
{
"description": "string",
"id": "string",
"name": "string",
"permissions": [
{
"description": "string",
"id": "string",
"name": "string"
}
],
"user_count": 0
}
]
},
"_etag": "string",
"_links": {
"_self": {
"href": "string",
"templated": true,
"type": "string"
},
"delete-user": {
"href": "string",
"templated": true,
"type": "string"
},
"update-user": {
"href": "string",
"templated": true,
"type": "string"
}
},
"access_control_configuration": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
],
"email": "string",
"full_name": "string",
"id": "string",
"inviter": "string",
"is_confirmed": true,
"is_enabled": true,
"last_activity_timestamp": "string",
"organizational_unit_count": 0
}
Error
- application/json
- Schema
- Example (from schema)
Schema
errors object[]
{
"errors": [
{
"error_code": 0,
"error_message": "string"
}
]
}
PATCH /users/:user_id
Authorization
Request
Request
curl -L -X PATCH 'https://us-west-2.api.clumio.com/users/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.users=v2+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"access_control_configuration_updates": {
"add": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
],
"remove": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
]
},
"full_name": "string",
"is_enabled": true
}'
curl -L -X PATCH 'https://us-west-2.api.clumio.com/users/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.users=v2+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"access_control_configuration_updates": {
"add": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
],
"remove": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
]
},
"full_name": "string",
"is_enabled": true
}'
curl -L -X PATCH 'https://us-west-2.api.clumio.com/users/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.users=v2+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"access_control_configuration_updates": {
"add": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
],
"remove": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
]
},
"full_name": "string",
"is_enabled": true
}'
curl -L -X PATCH 'https://us-west-2.api.clumio.com/users/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.users=v2+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"access_control_configuration_updates": {
"add": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
],
"remove": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
]
},
"full_name": "string",
"is_enabled": true
}'
curl -L -X PATCH 'https://us-west-2.api.clumio.com/users/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.users=v2+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"access_control_configuration_updates": {
"add": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
],
"remove": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
]
},
"full_name": "string",
"is_enabled": true
}'
curl -L -X PATCH 'https://us-west-2.api.clumio.com/users/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.users=v2+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"access_control_configuration_updates": {
"add": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
],
"remove": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
]
},
"full_name": "string",
"is_enabled": true
}'
curl -L -X PATCH 'https://us-west-2.api.clumio.com/users/:user_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.users=v2+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"access_control_configuration_updates": {
"add": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
],
"remove": [
{
"organizational_unit_ids": [
"string"
],
"role_id": "string"
}
]
},
"full_name": "string",
"is_enabled": true
}'