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 Sample Use Cases: Scopes and Claims 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

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”]

Teamwork makes the dreamwork!