# SAML Attribute to Group Mapper

**URL:** https://forum.keycloak.org/t/saml-attribute-to-group-mapper/13336
**Category:** Extending the server
**Tags:** saml
**Created:** [January 28, 2022, 4:12pm UTC](https://forum.keycloak.org/t/saml-attribute-to-group-mapper/13336 "2022-01-28T16:12:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mcastro673](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mcastro673](https://forum.keycloak.org/u/mcastro673)
#### Post date: [January 28, 2022, 4:12pm UTC](https://forum.keycloak.org/t/saml-attribute-to-group-mapper/13336/1 "2022-01-28T16:12:55Z")

</div>

Hi there 🙂  
I’m trying to understand if there is a way to map a saml attribute with an existing group in Keycloak.  
I need to add a new user to a group based on an attribute value.

Should I create a custom mapper or is there already something that do the job?
