A user is a security principal used for authenticating and authorizing access, assigning permissions to access or modify database objects, and tracking who performs actions within the database.
Database Explorer allows you to perform operations on users using the shortcut menu. Right-click a user in Database Explorer to access commands for specific tasks, such as managing users or search for them in Security Manager.
You can create a user in one of these ways:
1. In Database Explorer, right-click the user and select Edit User.
2. In Security Manager, update the user details.
3. On the Security Manager toolbar, click Save or press Ctrl+S.
1. In Database Explorer, right-click a required user and select Duplicate Object.
2. In the Duplicate Object dialog, configure the object settings:
3. Click OK.
1. In Database Explorer, right-click a required user and select Generate Script As, then select the statement type.
2. Select the output option:
For more information, see Generate the DDL and DML statements for database objects.
1. In Database Explorer, right-click the user or Users node and select Find in Security Manager.
2. Security Manager opens and highlights the object you look for.
To view user properties, in Database Explorer, right-click the user or Users node and select Show Details.
Object Viewer opens, displaying detailed information about the user.
To update the user to reflect the latest changes, in Database Explorer, right-click the user or Users node and select Refresh, or press F5.
To open the Properties window, in Database Explorer, right-click the user and select Properties, or press F4.
1. In Database Explorer, right-click the Users node and select Filter.
2. In the Filter Settings dialog, configure the filter parameters.
3. Click OK to apply the filter.
Note
When you open the Users node, the number of objects it contains appears in parentheses next to the node name. This number changes based on your filter settings.
The following table describes the shortcut menu options, which appear when you right-click a specific user in Database Explorer.
| Name | Description |
|---|---|
| Edit User | Opens Security Manager to update the user. |
| Source Control > Source Control Manager | Opens Source Control Manager, where you can track and manage changes to database schema and static data. When Source Control Manager is already open, this option refreshes it. |
| Source Control > Commit | Opens Source Control Manager with all local changes (if any) selected and ready to commit. When Source Control Manager is already open, this option refreshes it and selects all local database changes. |
| Source Control > Get Latest | Opens Source Control Manager with all remote changes (if any) selected, ready to pull using Get Latest. When Source Control Manager is already open, this option refreshes it and selects all remote database changes. |
| Duplicate Object | Opens the Duplicate Object dialog to duplicate the object. |
| Find in Security Manager | Opens Security Manager to find the selected user. |
| Generate Script As | Generates a script of the selected object using the CREATE, DROP, and DROP and CREATE statements. The script can be saved to a new SQL document or to a file, or copied to the clipboard. |
| Show Details | Opens Object Viewer to view object details. |
| Delete | Drops the selected object from the database. Shortcut: Delete |
| Refresh | Updates the object to reflect the latest changes. Shortcut: F5 |
| Properties | Opens the Properties pane to view the object information. Shortcut: F4 |
The following table describes the shortcut menu options, which appear when you right-click the Users node in Database Explorer.
| Name | Description |
|---|---|
| Source Control > Source Control Manager | Opens Source Control Manager, where you can track and manage changes to database schema and static data. When Source Control Manager is already open, this option refreshes it. |
| Source Control > Commit | Opens Source Control Manager with all local changes (if any) selected and ready to commit. When Source Control Manager is already open, this option refreshes it and selects all local database changes. |
| Source Control > Get Latest | Opens Source Control Manager with all remote changes (if any) selected, ready to pull using Get Latest. When Source Control Manager is already open, this option refreshes it and selects all remote database changes. |
| Filter | Opens the Filter Settings dialog to control which users should appear in Database Explorer. |
| Find in Security Manager | Opens Security Manager to find users. |
| Show Details | Opens Object Viewer to view object details. |
| Refresh | Updates the object to reflect the latest changes. Shortcut: F5 |
Note
The Source Control shortcut menu is available only after you link the corresponding database to a source-control system.
In Database Explorer, hold down Ctrl and select multiple users. Then right-click the selection and select the required option.
The following table describes the shortcut menu options available for multiple users.
| Name | Description |
|---|---|
| Edit User | Opens Security Manager to edit the selected users. |
| Source Control > Source Control Manager | Opens Source Control Manager, where you can track and manage changes to database schema and static data. When Source Control Manager is already open, this option refreshes it. |
| Source Control > Commit | Opens Source Control Manager with all local changes (if any) selected and ready to commit. When Source Control Manager is already open, this option refreshes it and selects all local database changes. |
| Source Control > Get Latest | Opens Source Control Manager with all remote changes (if any) selected, ready to pull using Get Latest. When Source Control Manager is already open, this option refreshes it and selects all remote database changes. |
| Source Control > Link/Unlink Static Data | Opes the Source Control Link Static Data dialog that displays the tables whose data you want to link. |
| Generate Script As | Generates scripts of the selected objects using the CREATE, DROP, and DROP and CREATE statements. The scripts can be generated to a new SQL document or to a file, or copied to the clipboard. |
| Delete | Drops the selected users from the database. Shortcut: Delete |
