PermissionAssignment
laktory.models.resources.databricks.PermissionAssignment
ยค
Bases: PermissionAssignmentBase
Databricks Permission Assignment
Workspace-level permission assignment of an account principal (user, group or service principal).
Examples:
import io
from laktory import models
assignment_yaml = '''
group_name: data-engineers
permissions:
- USER
'''
assignment = models.resources.databricks.PermissionAssignment.model_validate_yaml(
io.StringIO(assignment_yaml)
)
References
| BASE | DESCRIPTION |
|---|---|
group_name
|
the group name to assign to a workspace
TYPE:
|
permissions
|
The list of workspace permissions to assign to the principal:
TYPE:
|
principal_id
|
Databricks ID of the user, service principal, or group. The principal ID can be retrieved using the account-level SCIM API, or using databricks_user, databricks_service_principal or databricks_group data sources with account API (and has to be an account admin). A more sensible approach is to retrieve the list of
TYPE:
|
service_principal_name
|
the application ID of service principal to assign to a workspace
TYPE:
|
user_name
|
the user name (email) to assign to a workspace
TYPE:
|