Skip to main content

users

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

Overview

Nameusers
TypeResource
Iddatabricks_account.iam.users

Fields

The following fields are returned by SELECT queries:

User information was returned successfully.

NameDatatypeDescription
idstring
nameobject
activeboolean
displayNamestring
emailsarray
externalIdstring
rolesarray
userNamestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectGets information for a specific user in Databricks account.
listselectGets details for all the users associated with a Databricks account.
createinsertCreates a new user in the Databricks account. This new user will also be added to the Databricks account.
patchupdatePartially updates a user resource by applying the supplied operations on specific user attributes.
updatereplaceReplaces a user's information with the data supplied in request.
deletedeleteDeletes a user. Deleting a user from a Databricks account also removes objects associated with the user.

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

SELECT examples

Gets information for a specific user in Databricks account.

SELECT
id,
name,
active,
displayName,
emails,
externalId,
roles,
userName
FROM databricks_account.iam.users;

INSERT examples

Creates a new user in the Databricks account. This new user will also be added to the Databricks account.

INSERT INTO databricks_account.iam.users (
data__id,
data__userName,
data__displayName,
data__externalId,
data__active,
data__emails,
data__name,
data__roles
)
SELECT
{{ id }},
'{{ userName }}',
'{{ displayName }}',
'{{ externalId }}',
{{ active }},
'{{ emails }}',
'{{ name }}',
'{{ roles }}'
;

UPDATE examples

Partially updates a user resource by applying the supplied operations on specific user attributes.

UPDATE databricks_account.iam.users
SET
data__schemas = '{{ schemas }}',
data__Operations = '{{ Operations }}'
WHERE
;

REPLACE examples

Replaces a user's information with the data supplied in request.

REPLACE databricks_account.iam.users
SET
data__id = {{ id }},
data__userName = '{{ userName }}',
data__displayName = '{{ displayName }}',
data__externalId = '{{ externalId }}',
data__active = {{ active }},
data__emails = '{{ emails }}',
data__name = '{{ name }}',
data__roles = '{{ roles }}'
WHERE
;

DELETE examples

Deletes a user. Deleting a user from a Databricks account also removes objects associated with the user.

DELETE FROM databricks_account.iam.users;