Task: Modify a User's Roles (and therefore their
permissions)
Hub user accounts (including special user Anonymous) get their permissions
from their assigned roles. You can
therefore adjust the permissions that apply to a user by adding or
removing roles from their assigned set.
Hub user accounts (including special user Anonymous) get their permissions
from their assigned roles. To adjust the
permissions that apply to a user you therefore have two options:
- Modify the user's assigned role set by adding or removing
one or more roles.
- Adjust the role-permissions
for one or more of the user's assigned roles.
This page describes the steps required for the first of
these options: adjusting the user's role assignments.
For the second option, see Task:
Modify a Role's Permissions.
Note that all users always have the Anyone role: you will not be able to remove this
role from any user.
You will need to be authenticated as a user with the necessary
permissions.
It is sufficient to authenticate as a user with the special
Administrator role, which
immutably has the necessary permissions. In particular, it is always
sufficient to authenticate as special
user Administrator.
If you are not sure which roles you want a user to have, evaluate
the available roles in order to make a decision.
- Always evaluate the global role-permissions. These permissions
determine the degree of access a user has to hub administration
functionality as well as to fundamental functionality such the
ability to sign in.
- In some cases, you may also be interested in resource-specific
role-permissions. For example, you may wish to make sure that a
user is able to view information about analyses of a particular
project.
To evaluate the available roles, proceed as follows.
- If the CodeSonar Web GUI is not already open, open it now.
- If you are currently signed into a user account that does not
have suitable permissions:
- Sign out: click your username in the GUI page header
, then click the
Sign Out link that pops up.
- Click the Sign In link in the GUI page header:

The Sign In page will
open.
- Sign back in as Administrator (or another user with
suitable permissions).
- Navigate to the Global
Role-Permissions page.
- Click the Settings icon
in the page header to view the
Settings
page.
- Select the User
Administration tab.
- Click Global
Permissions.
The Global Role-Permissions page will open.
- Inspect the table of global role-permission assignments to
identify the roles you are interested in.
The global role-permissions apply hub-wide.
- If you are also interested in resource role-permissions,
inspect the relevant Resource Role-Permission pages.
For example, suppose you are interested in permissions with
respect to the project called ProjectX. Then:
- Navigate to the Project page for Project
X.
(For detailed navigation instructions, see Task: View Information About a
Project.)
- Expand the Project
Details section of the page.
- Click the Permissions link at the top of the Project
Details section.
The Resource
Role-Permissions page for ProjectX will open.
- Inspect the table to identify the roles you are interested
in.
Note that if a role has a particular Analysis permission (
directly or indirectly ) for ProjectX, it will implicitly
have that permission for all analyses of ProjectX.
Once you have determined which roles you are interested in, go on
to Add and Remove User Roles or
Change Default Role.
Suppose you wish to adjust the role assignments for user
alex, and you already know which
roles you want to add/remove (if not, see Determine Roles of Interest, above). Then
proceed as follows.
- If the CodeSonar Web GUI is not already open, open it now.
- If you are currently signed into a user account that does not
have suitable permissions:
- Sign out: click your username in the GUI page header
, then click the
Sign Out link that pops up.
- Click the Sign In link in the GUI page header:

The Sign In page will
open.
- Sign back in as Administrator (or another user with
suitable permissions).
- Navigate to the User
Roles page for alex:
- Click the Settings icon
in the page header to view the
Settings
page.
- Select the User
Administration tab.
- Click Users.
The Users page will open.
- In the Users page, click the table row for user
alex.
The Account
Editor for alex will
open.
- On the Account Settings tab of the Account Editor, click
View and Edit Roles (in the
Access Control section).
The User Roles page
for alex will open.
- In the table of roles, click the Assigned checkboxes to
add and remove direct assignments for alex.
Note that you will only be able to directly remove roles that
alex is directly
assigned.
- Click Save Changes.
The table will be updated to show the new set of roles for
alex.
One of the assigned roles for each user is designated the default
role for that user, and determines the initial
role-permission settings for all new named searches, report
templates, saved charts, and warning processors created by that
user.
Suppose you wish to set Engineer
as the default role for user alex,
and Engineer is already one of
alex's roles (if not, see
Add and Remove User Roles, above).
Then proceed as follows.
- If the CodeSonar Web GUI is not already open, open it now.
- If you are currently signed into a user account that does not
have G_ADMINISTER_USERS permission:
- Sign out: click your username in the GUI page header
, then click the
Sign Out link that pops up.
- Click the Sign In link in the GUI page header:

The Sign In page will
open.
- Sign back in as Administrator (or another user with
G_ADMINISTER_USERS permission).
- Navigate to the Account Editor page for
alex:
- Click the Settings icon
in the page header to view the
Settings
page.
- Select the User
Administration tab.
- Click Users.
The Users page will open.
- In the Users page, click the table row for user
alex.
The Account
Editor for alex will
open.
- On the Account Settings tab of the Account Editor, select
Engineer from the Default Role for Saved Resources menu (in the
Access Control section).
- Click Update.
The page will display a confirmation message.