Group Assignments

Adding a user to a group

post

Assigns a user to a specified group. The user gains all access controls (scopes) specified for this group.

Groups assigned to employee users must share the same vendor identifier.

The iam.assignment_create_own scope allows a customer to assign a user to a specified group only if the user is assigned to the same company.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
groupIdstringRequired

Unique identifier of a group, generated when the group is created.

Body
userIdstringRequired

User unique identifier generated when the user is created. Might be customer ID or Management Dashboard user ID.

userTypestring · enumOptional

Assignment type, possible values: CUSTOMER, EMPLOYEE

Default: EMPLOYEEExample: CUSTOMERPossible values:
Responses
post
/iam/{tenant}/groups/{groupId}/users

Removing all users from a group

delete

Removes all users from a specified group.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
groupIdstringRequired

Unique identifier of a group, generated when the group is created.

Responses
204

The request was successful. All users have been deleted from the group.

No content

delete
/iam/{tenant}/groups/{groupId}/users

No content

Upserting user assignment to a group

put

Creates user's assignment to a specified group. The user gains all access controls (scopes) specified for this group. In case the assignment already exists, nothing happens as the type of assignment cannot be changed.

Groups assigned to employee users must share the same vendor identifier

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
groupIdstringRequired

Unique identifier of a group, generated when the group is created.

userTypestringRequired

User type that may be one of: 'CUSTOMER', 'EMPLOYEE'

userIdstringRequired

User unique identifier, generated when the user is created.

Responses
204

The request was successful. The user assignment already exists and has not been changed.

No content

put
/iam/{tenant}/groups/{groupId}/users/{userType}/{userId}

Removing a user from a group

delete

Removes a specified user from a specified group.

The iam.assignment_delete_own scope allows a customer to remove user from a specified group only if the user is assigned to the same company.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
groupIdstringRequired

Unique identifier of a group, generated when the group is created.

userIdstringRequired

User unique identifier, generated when the user is created.

Responses
204

The request was successful. The user has been removed from the group.

No content

delete
/iam/{tenant}/groups/{groupId}/users/{userId}

No content

Removing a user from all groups

delete

Removes a specified user from all groups.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
userIdstringRequired

User unique identifier, generated when the user is created.

Responses
204

The request was successful. The user has been removed from all groups.

No content

delete
/iam/{tenant}/users/{userId}/groups

No content

Last updated

Was this helpful?