Creates a role in a MaxCompute project.
Syntax
create role <role_name>;Parameters
| Parameter | Required | Description |
|---|---|---|
role_name | Yes | The 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.