Manage user groups
User groups contain multiple Harness users. You assign roles and resource groups to user groups. The permissions and access granted by the assigned roles and resource groups are applied to all group members.
You can also assign roles and resource groups to individual users that are not in a group. However, user groups help keep your RBAC organized and make it easier to manage permissions and access. Instead of modifying each user individually, you can edit the permissions and access for the entire group at once.
Harness includes some built-in user groups, and you can create user groups manually, through inheritance, or through automated provisioning. You can create user groups at all scopes.
Built-in user groups
Harness has a built-in user group at each scope. This group is called All Project Users, All Organization Users, or All Account Users, depending on the scope. By default, users within a particular scope are in the All Users group for that scope.
- All Account Users: All users in the account scope.
- All Organization Users: All users in an organization's scope.
- All Project Users: All users in a project's scope.
Whenever you create an organization or project, Harness creates an All Users group for the org or project.
Initially, built-in user groups have no role or resource group assignments. You can assign a role and resource group to the built-in user group at a specific scope, which becomes the default role/resource group for all users at that scope.
For example, if you add a user to a project, they are added to the All Project Users group for that project, and they inherit the role and resource group you assigned to the All Project Users group.
Aside from assigning roles and resource groups, you can't edit or delete the built-in user groups. These groups are created and managed by Harness.
Use automated provisioning
You can manually create user groups and users in Harness, and you can use automated provisioning, including:
When you use automated provisioning, users and user groups are imported from your IdP, and then you assign roles and resource groups to the imported users and groups in Harness. For imported users and groups, you manage group metadata, group membership, and user profiles in your IdP, and you manage their role and resource group assignments in Harness. You can also create users and user groups directly in Harness, but any users or groups imported from your IdP must be managed in your IdP.
For example, if you use Okta as your IdP, you could create a user group in Okta and assign users to that group in Okta. When the user group is first imported into Harness, the group and the group members are not associated with any roles or resource groups. You must assign roles and resource groups to the user group in Harness. The group members then inherit permissions and access from the role and resource group that is assigned to the user group.
For user groups provisioned from SCIM to Harness, for the corresponding user groups created in Harness, the user group identifier
is derived from the display name of the user group in the SCIM provider. Harness replaces .
(dots) and -
(dashes) with an _
(underscore). All other special characters (#
, ?
, %
, and so on) and spaces are removed. Leading digits0
through 9
and $
are also removed.
Example 1: For a user group in SCIM with the name Harness.Group?Next#Gen-First
, the user group created in Harness will have the identifier
: Harness_GroupNextGen_First
.
Example 2: For a user group in SCIM with the name 123#One.$Two.$Three.123
, the user group created in Harness will have the identifier
: One_$Two_$Three_123
.
The name of the corresponding user group created in Harness will retain the special symbols as present in the user group of the SCIM provider. Example: For a user group in SCIM with the name Harness.Group?Next#Gen-First
, the user group created in Harness will have the same name
: Harness.Group?Next#Gen-First
.
Create user groups manually
To create user groups in Harness, you need a role, such as Account Admin, that has permission to view and manage user groups.
-
In Harness, go to the scope where you want to create the user group.
- To create a user group at the account scope, select Account Settings, and then select Access Control.
- To create a user group at the organization scope, go to Account Settings, select Organizations, select the relevant organization, and then select Access Control.
- To create a user group at the project scope, go to Projects, select the relevant project, and then select Access Control.
-
Select User Groups in the header, and then select New User Group.
-
Enter a Name for the user group. Description and Tags are optional.
-
In Add Users, select users to add to the group. If you haven't invited any users yet, you can add users later.
-
Select Save.
-
Assign roles and resource groups to the user group.