Skip to main content

users

Creates, updates, deletes, gets or lists a users resource.

Overview

Nameusers
TypeResource
Idsumologic.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:

NameAccessible byRequired ParamsOptional ParamsDescription
removeRoleFromUserdeleteroleId, userId, regionRemove a role from a user in the organization.
assignRoleToUserexecroleId, userId, regionAssign 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.

NameDatatypeDescription
regionstringSumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2)
roleIdstringIdentifier of the role to assign.
userIdstringIdentifier of the user to assign the role to.

DELETE examples

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

Assign a role to a user in the organization.

EXEC sumologic.roles.users.assignRoleToUser 
@roleId='{{ roleId }}' --required,
@userId='{{ userId }}' --required,
@region='{{ region }}' --required
;