currentuser
Creates, updates, deletes, gets or lists a currentuser
resource.
Overview
Name | currentuser |
Type | Resource |
Id | databricks_workspace.iam.currentuser |
Fields
The following fields are returned by SELECT
queries:
- me
User information was returned successfully.
Name | Datatype | Description |
---|---|---|
id | string | |
name | object | |
active | boolean | |
displayName | string | |
emails | array | |
entitlements | array | |
externalId | string | |
groups | array | |
roles | array | |
schemas | array | |
userName | string |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
me | select | deployment_name | Get 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.
Name | Datatype | Description |
---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
SELECT
examples
- me
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;