GRANT ROLE
Description
Grant a role on a specified Onehouse resource.
Syntax
GRANT ROLE <role> ON <resource_type> <resource_name> TO <principal_type> <principal_identifier>
Examples
GRANT ROLE MEMBER ON PROJECT 'my_project' TO GROUP 'eng_team'
GRANT ROLE USER ON CLUSTER 'managed_cluster' TO USER 'steve@apple.com'
Required parameters
role
: Specify one of{ADMIN|MEMBER|VIEWER|EDITOR|USER|MANAGER}
.resource_type
: Specify one of{ACCOUNT|PROJECT|GROUP|SERVICE_PRINCIPAL|CLUSTER|JOB|SOURCE|CATALOG|STREAM_CAPTURE}
.resource_name
: Specify the name of the resource to grant the role on.principal_type
: Specify one of{USER|GROUP|SERVICE_PRINCIPAL}
.principal_identifier
: Specify one of{<user_email>|<group_id>|<service_principal_id>}
.