# Custom Attributes at Client Level

**URL:** <https://forum.keycloak.org/t/custom-attributes-at-client-level/4394>\
**Category:** Getting advice\
**Tags:** authentication\
**Created:** [August 20, 2020, 8:52am UTC](https://forum.keycloak.org/t/custom-attributes-at-client-level/4394 "2020-08-20T08:52:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KalyanPrasad](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@KalyanPrasad](https://forum.keycloak.org/u/KalyanPrasad)\
**Post date:** [August 20, 2020, 8:52am UTC](https://forum.keycloak.org/t/custom-attributes-at-client-level/4394/1 "2020-08-20T08:52:29Z")

</div>

Is there a way to add custom attributes at client level directly instead of adding them at user/client scope level.

---

<div class="post-metadata">

**Author:** ![sebastienm](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/sebastienm/32/295_2.png) [@sebastienm](https://forum.keycloak.org/u/sebastienm)\
**Post date:** [August 20, 2020, 12:55pm UTC](https://forum.keycloak.org/t/custom-attributes-at-client-level/4394/2 "2020-08-20T12:55:22Z")

</div>

Hi,

Can’t you do this directly in “mappers” on your client ?

---

<div class="post-metadata">

**Author:** ![KalyanPrasad](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@KalyanPrasad](https://forum.keycloak.org/u/KalyanPrasad)\
**Post date:** [August 27, 2020, 7:56pm UTC](https://forum.keycloak.org/t/custom-attributes-at-client-level/4394/3 "2020-08-27T19:56:02Z")

</div>

Thanks for the response. we can do that. But, these attribute values has to come from user attributes. I was looking for an option where I can maintain custom attributes and its values at client level.

---

<div class="post-metadata">

**Author:** ![sebastienm](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/sebastienm/32/295_2.png) [@sebastienm](https://forum.keycloak.org/u/sebastienm)\
**Post date:** [August 28, 2020, 9:53am UTC](https://forum.keycloak.org/t/custom-attributes-at-client-level/4394/4 "2020-08-28T09:53:07Z")

</div>

It’s not only user attribute you can map, you can also use hard coded claim on client mapper’s

---

<div class="post-metadata">

**Author:** ![KalyanPrasad](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@KalyanPrasad](https://forum.keycloak.org/u/KalyanPrasad)\
**Post date:** [September 1, 2020, 5:43pm UTC](https://forum.keycloak.org/t/custom-attributes-at-client-level/4394/5 "2020-09-01T17:43:47Z")

</div>

> [@sebastienm](#):
>
> use hard coded claim on client mapper’s

Thanks again. Actually that is what the option I have opted. But, As I am new to keycloak thought to check/confirm if there was an option where we could add custom attributes at client level directly.

---

<div class="post-metadata">

**Author:** ![pigreco33](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/pigreco33/32/3882_2.png) [@pigreco33](https://forum.keycloak.org/u/pigreco33)\
**Post date:** [September 11, 2021, 8:48am UTC](https://forum.keycloak.org/t/custom-attributes-at-client-level/4394/6 "2021-09-11T08:48:30Z")

</div>

Hi,  
hard coded claim are not available in SAML clients.  
How can I do in that scenario?  
Thanks
