Get user information
Reviewed on · View on GitHub
You can find all the basic information about a user, including the state of their account in the system.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- iam.user.get
- Console
- API
- Terraform
Console

- In the Users table, click the identifier of the user whose information you want to retrieve.
You can search for a specific user using the Search field.
-
The "User details" page is displayed, with the user's general information: first name, last name, email and account status.
-
You can also view the list of spaces assigned to the user, as well as the roles and permissions assigned to them for a given space.
-
Clicking X roles displays the list of roles assigned to the user on one of the spaces they are associated with.
-
Clicking X permissions displays the list of permissions assigned to the user on one of the spaces they are associated with.
API
Get the details of a user in an organisation
Example
curl 'https://api.{region}.numspot.com/iam/organisations/{organisationId}/users/{userId}'
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"
}
See the API usage page for details.
Get the details of a user in a space
Example
curl 'https://api.{region}.numspot.com/iam/spaces/{spaceId}/users/{userId}'
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"
}
See the API usage page for details.
Get the list of spaces assigned to a user
Example
curl 'https://api.{region}.numspot.com/iam/organisations/{organisationId}/users/{userId}/spaces'
Response
{
"nextPageToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"totalSize": 150,
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
See the API usage page for details.
Get the roles and permissions of a user account in an organisation
Example
curl 'https://api.{region}.numspot.com/iam/organisations/{organisationId}/iampolicy/{subjectType}/{subjectId}'
Response
{
"roles": [
"123e4567-e89b-12d3-a456-426614174000"
],
"permissions": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
See the API usage page for details.
Get the roles and permissions of a user account in a space
Example
curl 'https://api.{region}.numspot.com/iam/spaces/{spaceId}/iampolicy/{subjectType}/{subjectId}'
Response
{
"roles": [
"123e4567-e89b-12d3-a456-426614174000"
],
"permissions": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
See the API usage page for details.
Terraform
The Terraform documentation is available on the Numspot registry ↗.