# Universal Login : Retrieving app\_metadata, user\_metadata or custom properties set through rules

**URL:** <https://community.auth0.com/t/universal-login-retrieving-app-metadata-user-metadata-or-custom-properties-set-through-rules/20602>\
**Category:** Get Help\
**Tags:** rules\
**Created:** [January 27, 2019, 3:43pm UTC](https://community.auth0.com/t/universal-login-retrieving-app-metadata-user-metadata-or-custom-properties-set-through-rules/20602 "2019-01-27T15:43:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danbord](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danbord/32/9615_2.png) [@danbord](https://community.auth0.com/u/danbord)\
**Post date:** [January 27, 2019, 3:43pm UTC](https://community.auth0.com/t/universal-login-retrieving-app-metadata-user-metadata-or-custom-properties-set-through-rules/20602/1 "2019-01-27T15:43:15Z")

</div>

I have an angular application that uses the Universal login. But in the hash returned by the authorize() method, I can’t find a way to retrieve either user\_metadata, app\_metadata or custom properties setted in a custom rule.

My WebAuth object is created this way :  
private \_Auth0 = new auth0.WebAuth({  
clientID: environment.auth.CLIENT\_ID,  
domain: environment.auth.CLIENT\_DOMAIN,  
responseType: “id\_token token”,  
redirectUri: (environment.auth.CALLBACK\_URL),  
scope: “openid profile email”  
});

In the retuned hash, my idTokenPayload only contains the following properties :  
at\_hash  
aud  
email  
email\_verified  
exp  
iat  
iss  
name  
nickname  
nonce  
picture  
sub  
updated\_at

---

<div class="post-metadata">

**Author:** ![danbord](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danbord/32/9615_2.png) [@danbord](https://community.auth0.com/u/danbord)\
**Post date:** [January 28, 2019, 2:03am UTC](https://community.auth0.com/t/universal-login-retrieving-app-metadata-user-metadata-or-custom-properties-set-through-rules/20602/2 "2019-01-28T02:03:25Z")

</div>

Ok, I realized that I must absolutely prefix my custom claims with “http://” prefix or auth0 removes them from teh idToken. 😕

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 28, 2019, 12:47pm UTC](https://community.auth0.com/t/universal-login-retrieving-app-metadata-user-metadata-or-custom-properties-set-through-rules/20602/3 "2019-01-28T12:47:03Z")

</div>

That is correct. Glad you figured this out! Let us know if you’ll need any help further down the road!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 29, 2019, 9:23am UTC](https://community.auth0.com/t/universal-login-retrieving-app-metadata-user-metadata-or-custom-properties-set-through-rules/20602/4 "2019-08-29T09:23:40Z")

</div>


