Task: Activate or Deactivate a User Account

There are two main situations in which you might want to deactivate a hub user account:

Conversely, you may wish to reactivate a previously-deactivated account if you have available active users capacity.


Overview

A hub user account is considered to be active if and only if one or more of its associated roles has G_SIGN_IN permission.

When a user account is deactivated:

Deactivating Users

To deactivate a user or set of users, de-assign them from all roles that have G_SIGN_IN permission.

Important note: if you have adjusted the Anyone role to add the G_SIGN_IN permission you will not be able to deactivate any users, because all users always have the Anyone role. You will need to remove the G_SIGN_IN permission from the Anyone role before proceeding with the deactivation process.

  1. If the CodeSonar Web GUI is not already open, open it now.
  2. If you are currently signed into a user account that does not have G_ADMINISTER_USERS permission:
    1. Sign out: click your username in the GUI page header Sign In icon, then click the Sign Out link that pops up.
    2. Click the Sign In link in the GUI page header: Sign In icon
      The Sign In page will open.
    3. Sign back in as Administrator (or another user with G_ADMINISTER_USERS permission).
  3. Navigate to the Global Role-Permissions page.
    1. Click the Settings icon Settings icon in the page header to view the Settings page.
    2. Select the User Administration tab.
    3. Click Global Permissions.
      The Global Role-Permissions page will open.
  4. The Sign In column in the table of roles corresponds to G_SIGN_IN permission.
    1. If the column is not already visible, add it.
  5. Sort the table in ascending order by the Sign In column.
    1. Click the Sign In column header to open the table menu for that column.
    2. Click Sort Ascending in the table menu.
    The roles with check marks in the Sign In column (that is, those with G_SIGN_IN permission) will now be clustered at the top of the table.
  6. For each of the roles with a check mark in the Sign In column, remove that role from all the users you want to deactivate as follows.
    1. Click the corresponding row of the table to navigate to the Role Users page for that role.
    2. If one or more of the users you want to deactivate has (at least) a "directly assigned" checkmark in the Assigned column, remove the direct assignment from those users as follows.
      1. Click the checkboxes next to those users to remove the bold ("directly assigned") checkmark.
      2. Click the Save Changes button (under the table).
        The table will update to show the effects of your changes.
  7. Once you have removed all roles with G_SIGN_IN permission from the user you want to deactivate, navigate to the Users page so you can check that deactivation has been successful.
    1. Click the Settings icon Settings icon in the page header to view the Settings page.
    2. Select the User Administration tab.
    3. Click Users.
      The Users page will open.
  8. Inspect the table of users on the Users page. All the users you deactivated should have an empty Sign In column (no check mark), indicating that they do not have G_SIGN_IN permission.

Activating Users

To activate a user or set of users, assign them a role that has G_SIGN_IN permission.

We provide built-in role Enabled to simplify this process.

This means that a user can always be activated by assigning them the Enabled role.

Important note: if you have adjusted the Enabled role to add further permissions that are not suitable for the users in question, you will need to choose (or perhaps create) a different role that has G_SIGN_IN but none of the unsuitable permissions.

Important note: activation (G_SIGN_IN permission) is not necessarily sufficient to allow a user to sign in to the hub. See Hub Authentication: Authentication and Authorization for details.

To assign the Enabled role, do the following.

  1. If the CodeSonar Web GUI is not already open, open it now.
  2. If you are currently signed into a user account that does not have G_ADMINISTER_USERS permission:
    1. Sign out: click your username in the GUI page header Sign In icon, then click the Sign Out link that pops up.
    2. Click the Sign In link in the GUI page header: Sign In icon
      The Sign In page will open.
    3. Sign back in as Administrator (or another user with G_ADMINISTER_USERS permission).
  3. Navigate to the Roles page.
    1. Click the Settings icon Settings icon in the page header to view the Settings page.
    2. Select the User Administration tab.
    3. Click Roles.
      The Roles page will open.
  4. Click the table row for the Enabled role.
    The Role Users page for the Enabled role will open.
  5. For each user that you want to activate, click the Assigned checkbox to add a ("directly assigned") checkmark.
  6. Click the Save Changes button (under the table).
    The table will update to show the effects of your changes.
  7. Navigate to the Users page so you can check that activation has been successful.
    1. Click the Settings icon Settings icon in the page header to view the Settings page.
    2. Select the User Administration tab.
    3. Click Users.
      The Users page will open.
  8. Inspect the table of users on the Users page. All the users you activated should have a check mark in the Sign In column, indicating that they have G_SIGN_IN permission.

Links