# SAML Team Mapping

**URL:** <https://forum.ansible.com/t/saml-team-mapping/30550>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 12, 2019, 6:31pm UTC](https://forum.ansible.com/t/saml-team-mapping/30550 "2019-06-12T18:31:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larry\_Bakun](https://avatars.discourse-cdn.com/v4/letter/l/41988e/32.png) [@Larry\_Bakun](https://forum.ansible.com/u/Larry_Bakun)\
**Post date:** [June 12, 2019, 6:31pm UTC](https://forum.ansible.com/t/saml-team-mapping/30550/1 "2019-06-12T18:31:33Z")

</div>

AWX v4.0.0.0.

I’ve organized our users into groups; This information is passed to AWX when user login as  
`

\<saml:Attribute Name=“companyGroups”  
NameFormat=“urn:oasis:names:tc:SAML:2.0:attrname-format:basic”\>  
\<saml:AttributeValue xsi:type=“xs:string”\>cn=Group1,ou=memberlist,ou=cmpgroups,o=cpm.com\</saml:AttributeValue\>  
\<saml:AttributeValue xsi:type=“xs:string”\>cn=Group2\_AllUsers,ou=memberlist,ou=cmpgroups,o=cpm.com\</saml:AttributeValue\>  
\<saml:AttributeValue xsi:type=“xs:string”\>cn=LargeGroup,ou=memberlist,ou=cmpgroups,o=cpm.com\</saml:AttributeValue\>  
\</saml:Attribute\>

`

How can I map these groups to different teams in AWX? The documentation shows only email regular expression:

`

```auto
SOCIAL_AUTH_TEAM_MAP = {
"My Team": {
    "organization": "Test Org",
    "users": ["/^[^@]+?@test\.example\.com$/"],
    "remove": True,
},
"Other Team": {
    "organization": "Test Org 2",
    "users": ["/^[^@]+?@test\.example\.com$/"],
    "remove": False,
},
}

```

`

Thanks,  
Larry

---

<div class="post-metadata">

**Author:** ![Nathan\_Brady](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/nathan_brady/32/8422_2.png) [@Nathan\_Brady](https://forum.ansible.com/u/Nathan_Brady)\
**Post date:** [June 25, 2019, 1:39pm UTC](https://forum.ansible.com/t/saml-team-mapping/30550/2 "2019-06-25T13:39:31Z")

</div>

Larry,

According the following issue remapping groups in SAML is not currently supported. The recommended approach is to manage them through your directory server or SAML provider.

[https://github.com/ansible/awx/issues/2688](https://github.com/ansible/awx/issues/2688)
