# Tutorial: adding auto mapping of forgejo groups

Create a role on the Keycloak client:
[![Screenshot_20240708_134308.png](https://wiki.lix.systems/uploads/images/gallery/2024-07/scaled-1680-/5ate6xyQVASBjJtL-screenshot-20240708-134308.png)](https://wiki.lix.systems/uploads/images/gallery/2024-07/5ate6xyQVASBjJtL-screenshot-20240708-134308.png)

Go into the group in question and map it the role you just made:
[![Screenshot_20240708_134350.png](https://wiki.lix.systems/uploads/images/gallery/2024-07/scaled-1680-/COoM2qCIhPECUIIf-screenshot-20240708-134350.png)](https://wiki.lix.systems/uploads/images/gallery/2024-07/COoM2qCIhPECUIIf-screenshot-20240708-134350.png)

Add a json snippet to map the role in the incoming tokens to the appropriate team on the org:

```json
{"the-distro-committer": {"the-distro": ["committers"]}, "the-distro-org-owner": {"the-distro": ["owners"]}}
```

It needs to be added to: <https://git.lix.systems/admin/auths/1>