Skip to content

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: str | None | VariableType DEFAULT: None

permissions

The list of workspace permissions to assign to the principal:

TYPE: list[str] | VariableType

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 principal_id as outputs from another Terraform stack

TYPE: int | None | VariableType DEFAULT: None

service_principal_name

the application ID of service principal to assign to a workspace

TYPE: str | None | VariableType DEFAULT: None

user_name

the user name (email) to assign to a workspace

TYPE: str | None | VariableType DEFAULT: None