All Products
Search
Document Center

MaxCompute:LIST ROLES

Last Updated:Mar 26, 2026

Lists all roles in a MaxCompute project.

Syntax

list roles;

Related statements

  • CREATE ROLE: Creates a role in a MaxCompute project.

  • GRANT: Assigns 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.