Skip to content

Manage groups

A group is a collection of users who have the same privileges to access resources in an organization. One user can be assigned to any number of groups. When one user group is granted access to a resource, it applies to all users in the group.

Applications can get details about groups a user belongs to as a user attribute in the authentication response (e.g., ID token).

Onboard a group

There are two ways to onboard a group:

  • An administrator can onboard users from a secondary user store by configuring a secondary user store in WSO2 Identity Server.

    Note

    If the secondary user store access type is read-only, you cannot update the user groups onboarded from this read-only user store.

  • Administrators can add groups via the WSO2 Identity Server Console.

Let's look at how administrators can onboard groups from the WSO2 Identity Server Console.

  1. On the WSO2 Identity Server Console, go to User Management > Groups.
  2. Click New Group and provide the following details.

    • Group Name: A unique name to identify the group.
    • Add Users: If you already have existing users, you can search and add them to a group.

    create-new-group-form

  3. Click Finish.

Assign users to groups

Users can be assigned to groups. Admins can allow/restrict access to resources based on the groups.

To assign users to groups:

  1. On the WSO2 Identity Server Console, go to User Management > Groups.
  2. Select the group to which you wish to assign users.
  3. Click Edit and navigate to Users.

    add-user-to-group-view

  4. Click Assign User and select users to add to the group.

  5. Click Save.

Remove users from groups

Administrators can remove users from groups.

To remove users from a group:

  1. On the WSO2 Identity Server Console, go to User Management > Groups.
  2. Select the group from which you wish to remove users.
  3. Click Edit and navigate to Users.

    remove-user-from-group-view

  4. Click Edit icon.

  5. Clear the checkbox for the user(s) you want to remove.
  6. Click Save.

Delete a group

An administrator can delete groups via the WSO2 Identity Server Console. To delete a group:

  1. On the WSO2 Identity Server Console, go to User Management > Groups.
  2. Click the trash icon next to the group you wish to delete.
  3. Select the checkbox and confirm your action.