Skip to main content

allowlisted_users

Creates, updates, deletes, gets or lists an allowlisted_users resource.

Overview

Nameallowlisted_users
TypeResource
Idsumologic.saml.allowlisted_users

Fields

The following fields are returned by SELECT queries:

A list of allowlisted users from the organization.

NameDatatypeDescription
canManageSamlbooleanIf the user can manage SAML Configurations.
emailstringEmail of the user. (example: john@sumologic.com)
firstNamestringFirst name of the user.
isActivebooleanChecks if the user is active.
lastLoginstring (date-time)Timestamp of the last login of the user.
lastNamestringLast name of the user.
userIdstringUnique identifier of the user.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getAllowlistedUsersselectregionGet a list of allowlisted users.
createAllowlistedUserinsertuserId, regionAllowlist a user from SAML lockdown allowing them to sign in using a password in addition to SAML.
deleteAllowlistedUserdeleteuserId, regionRemove an allowlisted user requiring them to sign in using SAML.

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)
userIdstringIdentifier of user that will no longer be allowlisted from SAML Lockdown.

SELECT examples

Get a list of allowlisted users.

SELECT
canManageSaml,
email,
firstName,
isActive,
lastLogin,
lastName,
userId
FROM sumologic.saml.allowlisted_users
WHERE region = '{{ region }}' -- required
;

INSERT examples

Allowlist a user from SAML lockdown allowing them to sign in using a password in addition to SAML.

INSERT INTO sumologic.saml.allowlisted_users (
userId,
region
)
SELECT
'{{ userId }}',
'{{ region }}'
RETURNING
canManageSaml,
email,
firstName,
isActive,
lastLogin,
lastName,
userId
;

DELETE examples

Remove an allowlisted user requiring them to sign in using SAML.

DELETE FROM sumologic.saml.allowlisted_users
WHERE userId = '{{ userId }}' --required
AND region = '{{ region }}' --required
;