Can we get user meta or app meta inside the profile object without using management api

can we get user meta or app meta inside the profile object without using management api

Hi @pandeysumit832,

I’m afraid that’s not possible. If you want to retrieve the user_metadata or app_metadata at the time of user login, you can consider adding them as a custom claim by using a rule.

Please refer to https://auth0.com/docs/scopes/sample-use-cases-scopes-and-claims#add-custom-claims-to-a-token to learn more about adding custom claims to tokens.

Note that adding too many custom claims can increase the token size, and there can be issues with having too large tokens.

Cheers!

2 Likes

How to i access the metadata from the profile obj it comming in the format http://localhost:3000/app_metadata

Same question how can I access metadata from the profile

Hey, u can achieve it by using a custom claim as mention in this thread and u got to use URL as a key
for eg: profile[“https://example.com/user_meta”]