Skip to main content

currentuser

Operations on a currentuser resource.

Overview

Namecurrentuser
TypeResource
Iddatabricks_workspace.iam.currentuser

Fields

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

Methods

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

SELECT examples

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