Adding a Group to Keycloak

Describes how to add a Keycloak user group.

By default, the Keycloak software provided with release 7.5.0 and later is preconfigured with only one user group (the fabric-manager group). To add a new group:
  1. Sign in to the Keycloak administration console as described in Accessing the Keycloak Administration Console. The master realm information is displayed:
  2. In the left navigation pane, click Groups.
  3. Click Create a group.
  4. Specify a name for the group, and click Create. The Groups page is displayed showing the new group. Click the link for the new group.
  5. Click the Attributes tab.
  6. In the Key field, type gidNumber, then specify a gidNumber value, such as 12345, in the Value field.
  7. Click Save.
  8. In the left navigation pane, click Users.
  9. From the list of users, click a user that you want to add to the new group.
  10. Click Join Group.
  11. Click the name of the group to which you want to add the user, and click Join.