# Saving custom claims to app\_metadata

**URL:** <https://community.auth0.com/t/saving-custom-claims-to-app-metadata/81066>\
**Category:** Get Help\
**Tags:** app\_metadata, actions, rules, oidc, login\
**Created:** [April 4, 2022, 2:16pm UTC](https://community.auth0.com/t/saving-custom-claims-to-app-metadata/81066 "2022-04-04T14:16:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![borja.roux](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/borja.roux/32/33355_2.png) [@borja.roux](https://community.auth0.com/u/borja.roux)\
**Post date:** [April 4, 2022, 5:15pm UTC](https://community.auth0.com/t/saving-custom-claims-to-app-metadata/81066/2 "2022-04-04T17:15:57Z")

</div>

I have found a big mistake in my question, a confirmation, and a solution.

The big mistake is stating the information from the third-party IDP is not saved. It is saved in the user profile (out of the metadata fields). It can be seen in the “Identity Provider Attributes” section of the user details, as well as in the “Raw JSON” section.

I have been able to confirm that this information cannot be retrieved via actions via `event.user.["https://namespace/claim"]`

It can however be used in rules via `user.["https://namespace/claim"]`

The solution is to use rules instead of actions (in this case, while actions do not enable this functionality).

PS: in case you find it strange that the IDP claims are stored replacing dots with colons (just like me), check [this thread](https://community.auth0.com/t/namespaced-claim-replaces-period-with-colon/59773/2).

---

_[View the full topic](https://community.auth0.com/t/saving-custom-claims-to-app-metadata/81066)._
