Assign an identity to a space
Assign users or service accounts to a space to give them access to the resources of that space.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- iam.role.create
- Console
- API
- Terraform

You access the Spaces table, where you can view all the spaces of your organization.
By clicking Actions for a given space, you can edit it and assign users or service accounts to it.
Click the Actions button of the relevant space, then click Assign users or Assign service accounts.
The screens are displayed in a similar way for managing users and service accounts.
Select the users or service accounts you want to assign to this space, then click the Assign button.
You can also assign users or service accounts from the details page of a space.
To assign a user account to a space with the API, you need to know the UUID (Universally Unique Identifier) of the space. A variant in the URL lets you act on a user or on a service account.
At the end of this operation, the account is assigned to the space but without a role or permission.
curl 'https://api.{region}.numspot.com/iam/spaces/{spaceId}/users/{userId}' \
--request POST
The request returns no response.
See the page on using the API for the implementation.
To remove (unassign) a user account from a space with the API:
At the end of this operation, the user account is no longer assigned to the space but remains present in the organization or assigned to other spaces.
curl 'https://api.{region}.numspot.com/iam/spaces/{spaceId}/users/{userId}' \
--request DELETE
To assign a service account to a space with the API:
curl 'https://api.{region}.numspot.com/iam/spaces/{spaceId}/serviceAccounts/{serviceAccountId}' \
--request POST
To remove (unassign) a service account from a space with the API:
At the end of this operation, the service account is no longer assigned to the space but remains present in the organization or assigned to other spaces.
curl 'https://api.{region}.numspot.com/iam/spaces/{spaceId}/serviceAccounts/{serviceAccountId}' \
--request DELETE
The Terraform documentation is available on the Numspot registry ↗.