CREATE ROLE

更新时间:
复制 MD 格式

Creates a role in a MaxCompute project.

Syntax

create role <role_name>;

Parameters

ParameterRequiredDescription
role_nameYesThe name of the role that you want to add.

Example

Create a role named player:

-- Create the player role.
create role player;

See also

  • LIST ROLES: Views the information of all roles in a MaxCompute project.

  • GRANT: Grants a role to a user so that the user has all the permissions of the role.

  • REVOKE: Revokes permissions of a specified role from a user.

  • DROP ROLE: Drops an existing role from a MaxCompute project.