|
2 | 2 | title: Members
|
3 | 3 | ---
|
4 | 4 |
|
5 |
| -## User Roles |
| 5 | +To view all the members in your organization, go to **Manage** > **Members**. This page provides a list of all members, including their email addresses, roles, join times, and last active times. If you're an `account_admin`, you can also change a member's role or remove a member from your organization. |
6 | 6 |
|
7 |
| -In Databend Cloud, user management is facilitated through roles. An organization within Databend Cloud is equipped with default roles, each serving distinct purposes: |
| 7 | +- The roles listed show the roles assigned to users when they were invited. While these roles can be changed on the page, they cannot be revoked using SQL. However, you can grant additional roles or privileges to users based on their email addresses. These user accounts, identified by their email addresses, can also function as SQL users in Databend Cloud. Example: |
8 | 8 |
|
9 |
| -- account_admin: Positioned at the apex of the role hierarchy, this role embodies the highest level of authority within an organization. It is intended for users who undertake the responsibilities of database administrators. |
| 9 | + ```sql |
| 10 | + GRANT ROLE writer to '[email protected]'; |
| 11 | + GRANT SELECT ON *. * TO '[email protected]'; |
| 12 | + ``` |
10 | 13 |
|
11 |
| -- public: This role encompasses all users within the organization, providing a baseline level of access and permissions. |
12 |
| - |
13 |
| -Furthermore, Databend Cloud offers the capability to craft custom roles using SQL commands for a more nuanced and tailored user management approach. This empowers you with the flexibility to establish roles that align with specific requirements. For instance, roles can be devised to correspond to users' positions, thus establishing a hierarchical role structure for your organization: |
14 |
| - |
15 |
| - |
16 |
| - |
17 |
| -When inviting a new user, it's necessary to assign a role to them. You can also manage roles for all users in your organization through the **Manage** > **Members** page or by using SQL commands. |
18 |
| - |
19 |
| -:::note |
20 |
| -- The default roles within an organization are not editable or removable. |
21 |
| - |
22 |
| -- Only users assigned to the *account_admin* role can create roles and manage user roles for their organization. |
23 |
| -::: |
| 14 | +- The page does not display users created using SQL. To view the SQL users that have been created, use the [SHOW USERS](/sql/sql-commands/ddl/user/user-show-users) command. |
24 | 15 |
|
25 | 16 | ## Inviting New Members
|
26 | 17 |
|
27 |
| -In Databend Cloud, you can invite new members using their email addresses to join your organization. To do this, navigate to the **Manage** > **Members** page and click on **Invite New Member**. In the dialog box that appears, enter the user's email address and select a role from the list. This list includes both default roles and any custom roles created for your organization. |
| 18 | +To invite a new member to your organization, navigate to the **Manage** > **Members** page and click on **Invite New Member**. In the dialog box that appears, enter the user's email address and select a role from the list. This list includes built-in roles and any created roles created for your organization. For more information about the roles, see [Roles](/guides/security/access-control/roles). |
28 | 19 |
|
29 | 20 | An invitation email will be sent to the invited user. Inside the email, there will be a link that the user can click on to initiate the signup process.
|
30 | 21 |
|
|
0 commit comments