All Products
Search
Document Center

MaxCompute:CREATE ROLE

Last Updated:Mar 26, 2026

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.