# Metadata - Custom User Attributes

**URL:** <https://forum.keycloak.org/t/metadata-custom-user-attributes/16343>\
**Category:** Miscellanaeous\
**Created:** [July 6, 2022, 6:56pm UTC](https://forum.keycloak.org/t/metadata-custom-user-attributes/16343 "2022-07-06T18:56:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eleisman](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@eleisman](https://forum.keycloak.org/u/eleisman)\
**Post date:** [July 6, 2022, 6:56pm UTC](https://forum.keycloak.org/t/metadata-custom-user-attributes/16343/1 "2022-07-06T18:56:26Z")

</div>

User Metadata - Custom Attributes.

It is clear to me on how to add custom attributes to an existing user.  
What I am unclear on is the best practice recommended by Keycloak in terms of adding those attributes to ALL users and NEW users.

- Is there a best practice?
- This seems like something covered by a new user profile or template but I have not been able to locate existing documentation.

By way of simple fictitious example:  
I want all users of Realm: CondoAssociation  
to have custom attributes:

- hobbies
- favoriteMusicalArtists
- favoriteLocalRestaurants

How would I apply this to all existing users? (this one seems like an API / scripting thing).  
More importantly, how would i ensure that all new users had these attributes by default?

Thank you in advance (and with apologies if I have missed a posting or obvious documentation)
