# User Metadata not showing up in SAML2 Web App Response

**URL:** <https://community.auth0.com/t/user-metadata-not-showing-up-in-saml2-web-app-response/125764>\
**Category:** Get Help\
**Tags:** application, addons\
**Created:** [January 26, 2024, 1:00am UTC](https://community.auth0.com/t/user-metadata-not-showing-up-in-saml2-web-app-response/125764 "2024-01-26T01:00:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 27, 2024, 1:17am UTC](https://community.auth0.com/t/user-metadata-not-showing-up-in-saml2-web-app-response/125764/3 "2024-01-27T01:17:27Z")

</div>

Hi @OliJ,

Welcome to the Auth0 Community!

Since the SAML2 Addon mappings object can only work with root-level profile attributes, you will need to map the user\_metadata properties to the `event.user` object using an Action.

Doing this will bubble up the attributes to the root level and allow them to be accessible from the mappings objects in the SAML2 Addon settings for login.

Post-Login Action script:

```auto
exports.onExecutePostLogin = async (event, api) => {
   if (event.user.user_metadata && event.user.user_metadata.UserMeta) {
     event.user.UserMeta = event.user.user_metadata.UserMeta;
   }
}

```

(Reference: [How to Map SAML Attributes when Auth0 is the IDP in the SAML2 Addon](https://community.auth0.com/t/how-to-map-saml-attributes-when-auth0-is-the-idp-in-the-saml2-addon/80928#heading--fourth-header))

Could you give this a try and let me know how it goes for you?

Thanks,  
Rueben

---

_[View the full topic](https://community.auth0.com/t/user-metadata-not-showing-up-in-saml2-web-app-response/125764)._
