@@ -12,7 +12,7 @@ When you authenticate with pgAdmin, the server definitions associated with that
1212login role are made available in the tree control.
1313
1414Users Tab
15- *******************
15+ *********
1616An administrative user can use the *Users * tab to:
1717
1818* manage pgAdmin users
@@ -21,7 +21,7 @@ An administrative user can use the *Users* tab to:
2121* deactivate user
2222* unlock a locked user
2323
24- .. image :: images/user .png
24+ .. image :: images/users .png
2525 :alt: pgAdmin user management window
2626 :align: center
2727
@@ -78,6 +78,60 @@ users, but otherwise have the same capabilities as those with the *User* role.
7878* Click the *Help * button (?) to access online help.
7979
8080
81+ Roles Tab
82+ *********
83+ An administrative user can use the *Roles * tab to:
84+
85+ * manage pgAdmin roles
86+ * delete roles
87+
88+ .. image :: images/roles.png
89+ :alt: pgAdmin roles management window
90+ :align: center
91+
92+ Use the *Search * field to specify criteria and review a list of roles
93+ that match the specified criteria. You can enter a value that matches
94+ the following criteria types: *Role Name * or *Description *.
95+
96+ To add a role, click the Add (+) button at the top left corner. It will open a
97+ dialog where you can fill in details for the new role.
98+
99+ .. image :: images/add_role.png
100+ :alt: pgAdmin roles management window add new role
101+ :align: center
102+
103+ Provide information about the new pgAdmin role in the row:
104+
105+ * Use the *Name * field to specify a unique name for the role.
106+ * Use the *Description * field to provide a brief description of the role.
107+
108+ To delete a role, click the trash icon to the left of the row and confirm deletion
109+ in the *Delete role? * dialog. If the role is associated with any users or resources,
110+ you may need to reassign those associations before deletion.
111+
112+ Roles allow administrators to group privileges and assign them to users more efficiently.
113+ This helps in managing permissions and access control within the pgAdmin client.
114+
115+ * Click the *Refresh * button to get the latest roles list.
116+ * Click the *Help * button (?) to access online help.
117+
118+
119+ Permissions Tab
120+ ***************
121+ An administrative user can use the *Permissions * tab to manage pgAdmin permissions for
122+ a role.
123+
124+ .. image :: images/permissions.png
125+ :alt: pgAdmin permissions management window
126+ :align: center
127+
128+ * Filter permissions using the *Search * field by entering names that match the list.
129+ * Administrators can select permissions from the list of available permissions, and
130+ choose to grant or revoke these permissions for specific roles.
131+ * The permissions are applied to the selected role immediately.
132+
133+
134+
81135Using 'setup.py' command line script
82136####################################
83137
@@ -108,10 +162,11 @@ email and password. role and active will be optional fields.
108162
109163 /path/to/python /path/to/setup.py add-user user1@gmail.com password
110164
111- # to specify a role, admin and non-admin users:
165+ # to specify a role, either you can use --admin for Administrator role or provide the
166+ # role using --role. If both are provided --admin will be used:
112167
113168 /path/to/python /path/to/setup.py add-user user1@gmail.com password --admin
114- /path/to/python /path/to/setup.py add-user user1@gmail.com password --nonadmin
169+ /path/to/python /path/to/setup.py add-user user1@gmail.com password --role Users
115170
116171 # to specify user's status
117172
@@ -132,10 +187,11 @@ followed by email, password and authentication source. email, role and status wi
132187
133188 /path/to/python /path/to/setup.py add-external-user ldapuser ldap --email user1@gmail.com
134189
135- # to specify a role, admin and non-admin user:
190+ # to specify a role, either you can use --admin for Administrator role or provide the
191+ # role using --role. If both are provided --admin will be used:
136192
137193 /path/to/python /path/to/setup.py add-external-user ldapuser ldap --admin
138- /path/to/python /path/to/setup.py add-external-user ldapuser ldap --nonadmin
194+ /path/to/python /path/to/setup.py add-external-user ldapuser ldap --role Users
139195
140196 # to specify user's status
141197
@@ -152,10 +208,11 @@ email address. password, role and active are updatable fields.
152208
153209 /path/to/python /path/to/setup.py update-user user1@gmail.com --password new-password
154210
155- # to specify a role, admin and non-admin user:
211+ # to specify a role, either you can use --admin for Administrator role or provide the
212+ # role using --role. If both are provided --admin will be used:
156213
157- /path/to/python /path/to/setup.py update-user user1@gmail.com password --role -- admin
158- /path/to/python /path/to/setup.py update-user user1@gmail.com password --role --nonadmin
214+ /path/to/python /path/to/setup.py update-user user1@gmail.com password --admin
215+ /path/to/python /path/to/setup.py update-user user1@gmail.com password --role Users
159216
160217 # to specify user's status
161218
@@ -172,17 +229,18 @@ followed by username and auth source. email, password, role and active are updat
172229
173230 # to change email address:
174231
175- /path/to/python /path/to/setup.py update-external-user ldap ldapuser --email newemail@gmail.com
232+ /path/to/python /path/to/setup.py update-external-user ldapuser --auth-source ldap --email newemail@gmail.com
176233
177- # to specify a role, admin and non-admin user:
234+ # to specify a role, either you can use --admin for Administrator role or provide the
235+ # role using --role. If both are provided --admin will be used:
178236
179- /path/to/python /path/to/setup.py update-user user1@gmail.com password --role --admin
180- /path/to/python /path/to/setup.py update-user user1@gmail.com password --role --nonadmin
237+ /path/to/python /path/to/setup.py update-external- user user1@gmail.com password --role --admin
238+ /path/to/python /path/to/setup.py update-external- user user1@gmail.com password --role --role Users
181239
182240 # to change user's status
183241
184- /path/to/python /path/to/setup.py update-user ldap ldapuser --active
185- /path/to/python /path/to/setup.py update-user ldap ldapuser --inactive
242+ /path/to/python /path/to/setup.py update-user ldapuser --auth-source ldap --active
243+ /path/to/python /path/to/setup.py update-user ldapuser --auth-source ldap --inactive
186244
187245 Delete User
188246***********
0 commit comments