# OIDC configuration - Role mapping

**URL:** <https://discuss.elastic.co/t/oidc-configuration-role-mapping/344705>\
**Category:** Kibana\
**Created:** [October 10, 2023, 7:58am UTC](https://discuss.elastic.co/t/oidc-configuration-role-mapping/344705 "2023-10-10T07:58:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sherwin\_R](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sherwin_r/32/122538_2.png) [@Sherwin\_R](https://discuss.elastic.co/u/Sherwin_R)\
**Post date:** [October 10, 2023, 7:59am UTC](https://discuss.elastic.co/t/oidc-configuration-role-mapping/344705/1 "2023-10-10T07:59:00Z")

</div>

I am trying to configure OIDC for signing into kibana. My OP provides a claim token after a successful authentication from which I am trying to map the value of a field called "roles" to kibana user roles.

According to the ELK documentation, the below realm

```auto
xpack.security.authc.realms.oidc.oidc1.claims.groups

```

seems to be used for that purpose. I assigned this value to be as roles as follows :

```auto
xpack.security.authc.realms.oidc.oidc1.claims.groups: roles

```

But the authentication does not work as expected. I am getting an authorization error. Is there another way of mapping the OIDC claim's "roles" to kibana user roles ?

---

<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:** [November 7, 2023, 7:59am UTC](https://discuss.elastic.co/t/oidc-configuration-role-mapping/344705/2 "2023-11-07T07:59:30Z")

</div>

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