Skip to main content

currentuser

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

Overview

Namecurrentuser
TypeResource
Iddatabricks_workspace.iam.currentuser

Fields

The following fields are returned by SELECT queries:

User information was returned successfully.

NameDatatypeDescription
idstring
nameobject
activeboolean
displayNamestring
emailsarray
entitlementsarray
externalIdstring
groupsarray
rolesarray
schemasarray
userNamestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
meselectdeployment_nameGet details about the current method caller's identity.

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
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

SELECT examples

Get details about the current method caller's identity.

SELECT
id,
name,
active,
displayName,
emails,
entitlements,
externalId,
groups,
roles,
schemas,
userName
FROM databricks_workspace.iam.currentuser
WHERE deployment_name = '{{ deployment_name }}' -- required;