users
Creates, updates, deletes, gets or lists a users resource.
Overview
| Name | users |
| Type | Resource |
| Id | sumologic.roles.users |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
removeRoleFromUser | delete | roleId, userId, region | Remove a role from a user in the organization. | |
assignRoleToUser | exec | roleId, userId, region | Assign a role to a user in the organization. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | SumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2) |
roleId | string | Identifier of the role to assign. |
userId | string | Identifier of the user to assign the role to. |
DELETE examples
- removeRoleFromUser
Remove a role from a user in the organization.
DELETE FROM sumologic.roles.users
WHERE roleId = '{{ roleId }}' --required
AND userId = '{{ userId }}' --required
AND region = '{{ region }}' --required
;
Lifecycle Methods
- assignRoleToUser
Assign a role to a user in the organization.
EXEC sumologic.roles.users.assignRoleToUser
@roleId='{{ roleId }}' --required,
@userId='{{ userId }}' --required,
@region='{{ region }}' --required
;