# How to create role name from 2 different LDAP attributes

**URL:** <https://forum.keycloak.org/t/how-to-create-role-name-from-2-different-ldap-attributes/1452>\
**Category:** Getting advice\
**Tags:** ldap\
**Created:** [February 28, 2020, 9:16am UTC](https://forum.keycloak.org/t/how-to-create-role-name-from-2-different-ldap-attributes/1452 "2020-02-28T09:16:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Robinyo](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Robinyo](https://forum.keycloak.org/u/Robinyo)\
**Post date:** [February 28, 2020, 11:38pm UTC](https://forum.keycloak.org/t/how-to-create-role-name-from-2-different-ldap-attributes/1452/2 "2020-02-28T23:38:05Z")

</div>

> [@Managing scope field of Access Token](http://forum.keycloak.org/t/managing-scope-field-of-access-token/1265/2):
>
> See: [Server Administration - Script Mapper](https://www.keycloak.org/docs/latest/server_admin/index.html#script-mapper)[Server Developer - JavaScript Providers](https://www.keycloak.org/docs/latest/server_development/#_script_providers)[How to create a Script Mapper in Keycloak?](https://stackoverflow.com/questions/52518298/how-to-create-a-script-mapper-in-keycloak)

---

_[View the full topic](https://forum.keycloak.org/t/how-to-create-role-name-from-2-different-ldap-attributes/1452)._
