Skip to main content

Grant roles to a user

PUT 

/metalakes/:metalake/permissions/users/:user/grant

Grants roles to a user and returns the user with its updated roles. Every role must exist, and roles the user already has are left unchanged.

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

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

    user stringrequired

    The name of the user

Body

    roleNames string[]required

    The role names need to grant

Responses​

The user, with its roles after the grant.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    user

    object

    name stringrequired

    The name of the user

    roles string[]

    The roles of the user

    id int64

    The identifier Gravitino assigns to the user

    audit

    object

    Audit information for a Gravitino resource.

    creator string

    The user who created the resource

    createTime date-time

    The time the resource was created

    lastModifier string

    The user who last modified the resource

    lastModifiedTime date-time

    The time the resource was last modified

Loading...