Skip to main content

List roles for a metadata object

GET 

/metalakes/:metalake/objects/:metadataObjectType/:metadataObjectFullName/roles

Returns the names of the roles that grant privileges on the given metadata object. When authorization is enabled, the list includes only the roles the caller is allowed to view.

Sign in with a bearer token or a local user's password; see Authentication.

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

    metadataObjectType stringrequired

    Possible values: [METALAKE, CATALOG, SCHEMA, FILESET, TABLE, VIEW, TOPIC, MODEL, TAG, POLICY, JOB_TEMPLATE, FUNCTION]

    The type of the metadata object. The list is the set of types that at least one privilege can be bound to; granting or revoking a privilege on any other type fails with IllegalPrivilegeException. The server matches the value case-insensitively.

    metadataObjectFullName stringrequired

    The full name of the metadata object

Responses​

The names of the roles that grant privileges on the metadata object.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    names string[]
Loading...