Creates a role in a MaxCompute project.

Syntax

create role <role_name>;

Parameters

role_name: required. The name of the role that you want to add.

Examples

-- Create the player role. 
create role player;

Related statements

  • 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.