# SAML Group Attributes with more than one group

**URL:** <https://discuss.elastic.co/t/saml-group-attributes-with-more-than-one-group/205295>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [October 25, 2019, 3:34pm UTC](https://discuss.elastic.co/t/saml-group-attributes-with-more-than-one-group/205295 "2019-10-25T15:34:41Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![ramss](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@ramss](https://discuss.elastic.co/u/ramss)\
**Post date:** [November 14, 2019, 9:43am UTC](https://discuss.elastic.co/t/saml-group-attributes-with-more-than-one-group/205295/21 "2019-11-14T09:43:37Z")

</div>

Hi,

I have been debugging this. Added few roles. However, the result from AD is not getting mapped properly.

```auto
{"type": "server", "timestamp": "2019-11-14T09:21:33,380+0000", "level": "TRACE", "component": "o.e.x.s.a.s.SamlAuthenticator", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-1", "cluster.uuid": "HMg1OHjeStyagiftRLnf4A", "node.id": "_UsU_--ZQLGsvwtUla5udA", "message": "*SAML AttributeStatement has [2] attributes* and [0] encrypted attributes" }
{"type": "server", "timestamp": "2019-11-14T09:21:33,380+0000", "level": "TRACE", "component": "o.e.x.s.a.s.SamlAuthenticator", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-1", "cluster.uuid": "HMg1OHjeStyagiftRLnf4A", "node.id": "_UsU_--ZQLGsvwtUla5udA", "message": "The SAML Assertion contained the following attributes: \nNameId=[ram-elk]\nhttp://schemas.microsoft.com/ws/2008/06/identity/claims/role=[Domain Users, elkgroup]\n" }
{"type": "server", "timestamp": "2019-11-14T09:21:33,381+0000", "level": "DEBUG", "component": "o.e.x.s.a.s.SamlRealm", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-1", "cluster.uuid": "HMg1OHjeStyagiftRLnf4A", "node.id": "_UsU_--ZQLGsvwtUla5udA", "message": "Parsed token [SamlToken{3c73616d6c703a526573706f6e73652049443d225f65353536663132302d393130362d343866332d626333332d31653236643763323231636222205665727369...}] to attributes [*SamlAttributes(null)[null]*{[NameId=[ram-elk], http://schemas.microsoft.com/ws/2008/06/identity/claims/role=[Domain Users, elkgroup]]}]" }

```

Though the ADFS is sending the name and the groups details and I have the role mapping as you mentioned for elkgroup, the saml attributes are not mapped accordingly.

SamlAttributes(null)[null] . Now I have a test ADFS server ready, hence I have tried multiple options to try mapping. However, attributes are not mapping accordingly

Could you guide me please?  
Ram

---

<div class="post-metadata">

**Author:** ![ramss](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@ramss](https://discuss.elastic.co/u/ramss)\
**Post date:** [November 14, 2019, 11:38am UTC](https://discuss.elastic.co/t/saml-group-attributes-with-more-than-one-group/205295/22 "2019-11-14T11:38:42Z")

</div>

Hi @ikakavas @Yogesh_Gaikwad @TimV  
Finally Godfather google has helped me with this [https://www.elastic.co/blog/how-to-configure-elasticsearch-saml-authentication-with-adfs](https://www.elastic.co/blog/how-to-configure-elasticsearch-saml-authentication-with-adfs)

Able to login after following step by step  
Thanks to you all  
Ram

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [November 14, 2019, 11:40am UTC](https://discuss.elastic.co/t/saml-group-attributes-with-more-than-one-group/205295/23 "2019-11-14T11:40:38Z")

</div>

Glad you got this working !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 12, 2019, 11:40am UTC](https://discuss.elastic.co/t/saml-group-attributes-with-more-than-one-group/205295/24 "2019-12-12T11:40:40Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/saml-group-attributes-with-more-than-one-group/205295.md?page=1)
