> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# CREATE ROLE

> CREATE ROLE creates a role.

CREATE ROLE creates a role. After a role is created, you can grant privileges to the role and then assign this role to a user or another role. This way, the privileges associated with this role are passed on to users or roles.

***

***

**Tip**

Only users with the `user_admin` role has the privilege to perform this operation.

## Syntax

```sql theme={null}
CREATE ROLE <role_name>
```

## Parameters

`role_name`: the name of the role. For the naming conventions, see [System limits](/documents/4.2/sql-reference/System_limit.md).

Note that the created role name cannot be the same as [system-defined roles](/documents/4.2/administration/user_privs/authorization/user_privs.md#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 parameter `privilege_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`.

## Examples

Create a role.

```sql theme={null}
CREATE ROLE role1;
```

## References

* [GRANT](/documents/4.2/sql-reference/sql-statements/account-management/GRANT.md)
* [SHOW ROLES](/documents/4.2/sql-reference/sql-statements/account-management/SHOW_ROLES.md)
* [DROP ROLE](/documents/4.2/sql-reference/sql-statements/account-management/DROP_ROLE.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.