doc-exports/docs/dws/umn/dws_01_01113.html
Lu, Huayi 95132e24fc DWS UMN 830.201_new version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-27 11:54:34 +00:00

37 lines
13 KiB
HTML

<a name="EN-US_TOPIC_0000001658828846"></a><a name="EN-US_TOPIC_0000001658828846"></a>
<h1 class="topictitle1">Managing Users</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_p1538103010471">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.</p>
<div class="note" id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_note191111840111514"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001658828846__ul393993491611"><li id="EN-US_TOPIC_0000001658828846__li146896270294">If the current version does not support this feature, contact technical support to upgrade the version.</li></ul>
<ul id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_ul46891827172919"><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li156896275299">After a cluster is created, the users or roles created with it cannot be modified.</li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li12611714141712">Before using this function, ensure that the cluster is available.</li></ul>
</div></div>
<div class="section" id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_section67011536312"><h4 class="sectiontitle">Creating a User</h4><ol id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_en-us_topic_0000001098976722_ol68915820275"><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li1316155620562"><span>Log in to the GaussDB(DWS) console. In the navigation pane, choose <strong id="EN-US_TOPIC_0000001658828846__b14580105513217">Clusters</strong> &gt; <strong id="EN-US_TOPIC_0000001658828846__b205803550324">Dedicated Clusters</strong>.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li197770975716"><span>In the cluster list, click the name of the target cluster. The <span class="parmname" id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_parmname19141842191917"><b>Cluster Information</b></span> page is displayed.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_en-us_topic_0000001098976722_li1227291172718"><span>In the navigation pane, choose <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b6612184814199">User Management</strong>.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li19216200101419"><span>On the <strong id="EN-US_TOPIC_0000001658828846__b143681579324">Users</strong> tab, click <strong id="EN-US_TOPIC_0000001658828846__b153686576324">Create User</strong>. The user creation page is displayed.</span><p><p id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_p9203172113351"><span><img id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_image13657821173518" src="figure/en-us_image_0000001759579345.png" title="Click to enlarge" class="imgResize"></span></p>
</p></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li1180614455343"><a name="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li1180614455343"></a><a name="en-us_topic_0000001662557549_li1180614455343"></a><span>Complete the user information as required, confirm the information, and click <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b162011227140">Next</strong>.</span><p><ul id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_ul108211145193417"><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li16314141333511"><strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b55231437147">Username</strong>: A username must start with a letter and can contain letters, numbers, and underscores (_). The length cannot exceed 63 characters.</li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li2314111343515"><strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b16563648171416">Password</strong>: A password must start with a letter and can contain letters, numbers, and underscores (_). The length cannot exceed 63 characters.<div class="note" id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_note7874182613515"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_p11629634113510">Must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters (~!?,.:;_(){}[]/&lt;&gt;@#%^&amp;*+|\=-)</p>
</div></div>
</li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li2031418139355"><strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b1914044119154">Maximum Connections</strong>: The maximum number of database connections that a user can set up. The value <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b124296125167">-1</strong> indicates that the number of connections is not limited.</li><li id="EN-US_TOPIC_0000001658828846__li4742125123715"><strong id="EN-US_TOPIC_0000001658828846__b272614211102">Expires</strong>: Set the expiration time of the user permission.</li><li id="EN-US_TOPIC_0000001658828846__li6380130133719"><strong id="EN-US_TOPIC_0000001658828846__b1312515014369">System Administrator</strong>: Whether the user has the system administrator rights.</li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li1531416135359"><strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b11401322111816">Create Database</strong>: Whether the user has the permission to create databases.</li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li15314131315355"><strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b1023113719181">Create Role</strong>: Whether the user has the permission to create users and roles.</li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li18315813103516"><strong id="EN-US_TOPIC_0000001658828846__b1733419541974">Inherited Permissions</strong>: Whether the user inherits role permissions from its group. <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b181244131202">This function is enabled by default. You are advised to retain this setting.</strong></li></ul>
</p></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_en-us_topic_0000001098976722_li10272211162717"><span>Select the role to be granted to the user and click <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b16801957172111">Next</strong>.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li492217111503"><span>Configure permissions not included in the roles of the user.</span><p><p id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_p1397713105547">Click <strong id="EN-US_TOPIC_0000001658828846__b168930592775757">Add</strong> 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 &gt; GRANT" in <em id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_i133482030182318">SQL Syntax Reference</em>.</p>
<p id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_p86961285544"><span><img id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_image769613810541" src="figure/en-us_image_0000001759419497.png" title="Click to enlarge" class="imgResize"></span></p>
</p></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li10948133095616"><span>After the authorization is complete, click <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b62914133714">Create</strong>.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_section73981607469"><h4 class="sectiontitle">Modifying a User</h4><ol id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_ol178821717722"><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li8882417620"><span>Log in to the GaussDB(DWS) console. In the navigation pane, choose <strong id="EN-US_TOPIC_0000001658828846__b2642152311362">Clusters</strong> &gt; <strong id="EN-US_TOPIC_0000001658828846__b14643202393615">Dedicated Clusters</strong>.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li13882161716218"><span>In the cluster list, click the name of the target cluster. The <span class="parmname" id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_parmname316614485198"><b>Cluster Information</b></span> page is displayed.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li98828171727"><span>In the navigation pane, choose <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b94619171173">User Management</strong>.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li988219171120"><span>In the user list, select a user and click <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b171818201079">Modify</strong>. The page for modifying user details is displayed.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li55472034712"><span>Modify the user information. For details, see <a href="#EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li1180614455343">User Information</a>. After confirming that the information is correct, click <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b5998211258">Next</strong>.</span><p><p id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_p1312715489522"><span><img id="EN-US_TOPIC_0000001658828846__image68047774415" src="figure/en-us_image_0000001835402214.png" title="Click to enlarge" class="imgResize"></span></p>
</p></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li18882141714219"><span>Select the role to be granted to the user and click <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b1757472252">Next</strong>.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li138827179212"><span>Add or remove permissions as required.</span><p><p id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_p1288218171214"><span><img id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_image87641156699" src="figure/en-us_image_0000001759579393.png" title="Click to enlarge" class="imgResize"></span></p>
</p></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li128839171222"><span>Confirm the permissions. Click lick <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b6832195015252">Save</strong>.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_section1645112582495"><h4 class="sectiontitle">Deleting a User</h4><ol id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_ol147794514105"><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li107720450106"><span>Log in to the GaussDB(DWS) console. In the navigation pane, choose <strong id="EN-US_TOPIC_0000001658828846__b16299192514362">Clusters</strong> &gt; <strong id="EN-US_TOPIC_0000001658828846__b20300725193610">Dedicated Clusters</strong>.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li13777453102"><span>In the cluster list, click the name of the target cluster. The <span class="parmname" id="EN-US_TOPIC_0000001658828846__parmname1459999541"><b>Cluster Information</b></span> page is displayed.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li27714520104"><span>In the navigation pane, choose <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b19738135417127">User Management</strong>.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li1277154514108"><span>Select a user from the user list and click <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b10209208142610">Delete</strong>. A confirmation dialog box is displayed.</span></li><li id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_li8773457107"><span>Click <strong id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_b842352706142631">OK</strong>.</span><p><div class="note" id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_note18960102835617"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001658828846__en-us_topic_0000001662557549_p251603885013">If a user has dependencies on database objects, such as tables, that have not been deleted, the user will fail to be deleted.</p>
</div></div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_01_01112.html">Database User Management</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>