forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
13 KiB
13 KiB
Managing Users
GaussDB(DWS) allows you to manage database users on the console. You can create, delete, and update database users and manage their permissions on the console.

- If the current version does not support this feature, contact technical support to upgrade the version.
- After a cluster is created, the users or roles created with it cannot be modified.
- Before using this function, ensure that the cluster is available.
Creating a User
- Log in to the GaussDB(DWS) console. In the navigation pane, choose Clusters > Dedicated Clusters.
- In the cluster list, click the name of the target cluster. The Cluster Information page is displayed.
- In the navigation pane, choose User Management.
- On the Users tab, click Create User. The user creation page is displayed.
- Complete the user information as required, confirm the information, and click Next.
- Username: A username must start with a letter and can contain letters, numbers, and underscores (_). The length cannot exceed 63 characters.
- Password: A password must start with a letter and can contain letters, numbers, and underscores (_). The length cannot exceed 63 characters.
- Maximum Connections: The maximum number of database connections that a user can set up. The value -1 indicates that the number of connections is not limited.
- Expires: Set the expiration time of the user permission.
- System Administrator: Whether the user has the system administrator rights.
- Create Database: Whether the user has the permission to create databases.
- Create Role: Whether the user has the permission to create users and roles.
- Inherited Permissions: Whether the user inherits role permissions from its group. This function is enabled by default. You are advised to retain this setting.
- Select the role to be granted to the user and click Next.
- Configure permissions not included in the roles of the user.
Click Add to add a permission configuration. Select the database object type and corresponding database object, and select the permission to complete assignment For details about permission definitions, see "DCL Syntax" > "GRANT" in SQL Syntax Reference.
- After the authorization is complete, click Create.
Modifying a User
- Log in to the GaussDB(DWS) console. In the navigation pane, choose Clusters > Dedicated Clusters.
- In the cluster list, click the name of the target cluster. The Cluster Information page is displayed.
- In the navigation pane, choose User Management.
- In the user list, select a user and click Modify. The page for modifying user details is displayed.
- Modify the user information. For details, see User Information. After confirming that the information is correct, click Next.
- Select the role to be granted to the user and click Next.
- Add or remove permissions as required.
- Confirm the permissions. Click lick Save.
Deleting a User
- Log in to the GaussDB(DWS) console. In the navigation pane, choose Clusters > Dedicated Clusters.
- In the cluster list, click the name of the target cluster. The Cluster Information page is displayed.
- In the navigation pane, choose User Management.
- Select a user from the user list and click Delete. A confirmation dialog box is displayed.
- Click OK.
Parent topic: Database User Management