Tip Only users with the
user_admin role has the privilege to perform this operation.
Syntax
Parameters
role_name: the name of the role. For the naming conventions, see System limits.
Note that the created role name cannot be the same as system-defined roles: root, cluster_admin, db_admin, user_admin, and public.
Limits
By default, a user can have a maximum of 64 roles, including the roles inherited through the roles granted to the user. This limit is checked when a role is granted to a user. You can adjust this setting by using the FE dynamic parameterprivilege_max_total_roles_per_user. A role can have a maximum of 16 inheritance levels. You can adjust this setting by using the FE dynamic parameter privilege_max_role_depth.