# Keycloak organizations invite user and add it to preselected groups

**URL:** <https://forum.keycloak.org/t/keycloak-organizations-invite-user-and-add-it-to-preselected-groups/31106>\
**Category:** Getting advice\
**Tags:** organizations\
**Created:** [September 19, 2025, 6:44am UTC](https://forum.keycloak.org/t/keycloak-organizations-invite-user-and-add-it-to-preselected-groups/31106 "2025-09-19T06:44:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergihf10](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sergihf10](https://forum.keycloak.org/u/sergihf10)\
**Post date:** [September 19, 2025, 6:44am UTC](https://forum.keycloak.org/t/keycloak-organizations-invite-user-and-add-it-to-preselected-groups/31106/1 "2025-09-19T06:44:04Z")

</div>

I am currently working with the organizations feature, and I am struggling to find a way to reproduce the behaviour I have using realms.

On my previous flow, from my web UI an admin was able to create a user and select the groups that the new user had to be assigned to. I did this just by first creating the user, then grabbing the userId from the response headers, and finally assigning it to the selected groups.

However, this flow is not what I need with organizations, since I want the new user to be a managed user, so I just want to send him the invite and then he finishes the process from the registration form. I know I could setup a standard group to be assigned to the new users, and after the user has finished the registration process, the admin is able to assign the groups to it, but ideally I would need this to be done somehow in only one step.

Is there a way to send some extra data to the registration event so then I can add a mapper that checks this data and assigns the groups once the user has been created? Or is there any other way I am able to achieve this?

Thanks a lot for any input

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [September 21, 2025, 8:07am UTC](https://forum.keycloak.org/t/keycloak-organizations-invite-user-and-add-it-to-preselected-groups/31106/2 "2025-09-21T08:07:22Z")

</div>

This is AFAIK currently not possible ootb. Perhaps one can achieve it with a custom event listener.

Fun fact: organizations are internally in Keycloak special types of groups… 😉

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/keycloak/original/1X/eb342909d95cf32cbb7517610022c6a0046a9ffb.png) [@system](https://forum.keycloak.org/u/system)\
**Post date:** [March 20, 2026, 8:08am UTC](https://forum.keycloak.org/t/keycloak-organizations-invite-user-and-add-it-to-preselected-groups/31106/3 "2026-03-20T08:08:14Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
