Update a user
Reviewed on · View on GitHub
You can update the user's basic information, as well as deactivate them.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- iam.user.update
- Console
- API
- Terraform
Console

-
From the left-hand side menu, click IAM → Users.
-
Click the identifier of the user to update.
The "User details" page appears.
-
In the "General information" section, click the pencil of the field to update: first name, last name or email address.
-
Enter the new value, then confirm with the tick (the cross cancels the change).
You can also deactivate the user with the "Account status" button (they will no longer be able to sign in), or send them a New activation link to reset their password and two-factor authentication.
API
Update a user in an organisation
Example
curl 'https://api.{region}.numspot.com/iam/organisations/{organisationId}/users/{userId}' \
--request PUT \
--header 'Content-Type: application/json' \
--data '{
"email": "john.smith@acme.org",
"firstname": "",
"lastname": "",
"active": true
}'
Response
{
"email": "john.smith@acme.org",
"firstname": "…",
"lastname": "…",
"id": "123e4567-e89b-12d3-a456-426614174000",
"active": true,
"createdOn": "2018-11-13T20:20:39+00:00",
"updatedOn": "2018-11-13T20:20:39+00:00"
}
All fields, updated or not, must be provided.
See the API usage page for details.
Update a user in a space
Example
curl 'https://api.{region}.numspot.com/iam/spaces/{spaceId}/users/{userId}' \
--request PUT \
--header 'Content-Type: application/json' \
--data '{
"email": "john.smith@acme.org",
"firstname": "",
"lastname": "",
"active": true
}'
Response
{
"email": "john.smith@acme.org",
"firstname": "…",
"lastname": "…",
"id": "123e4567-e89b-12d3-a456-426614174000",
"active": true,
"createdOn": "2018-11-13T20:20:39+00:00",
"updatedOn": "2018-11-13T20:20:39+00:00"
}
All fields, updated or not, must be provided.
See the API usage page for details.
Terraform
The Terraform documentation is available on the Numspot registry ↗.