Atlantiraptor Docs

user_grant

Type: Function · Category: server

Grants the user the specified roles.

Argument Type Description
user string (required) The user to create or update.
roles list of string List of roles to give the user.
orgs list of string One or more org IDs to grant access to. If not specified we use current org
policy ordereddict.Dict A dict of permissions to set (e.g. as obtained from the gui_users() function).

Required permissions: SERVER_ADMIN

Platforms: macOS, Linux, Windows

Source: vql/server/users/grant.go