kkrp1
November 13, 2024, 3:22pm
1
Here’s how I’m getting users:
let job = await fetch('https://*******.auth0.com/api/v2/jobs/users-exports', {
method: 'POST',
headers: {...auth, 'content-type': 'application/json'},
body: JSON.stringify({
format: 'csv',
limit: 1000,
fields: [{name: 'email'}, {name: 'app_metadata.foo'}]
})
});
This gives the following:
email,app_metadata.foo
"'example@example.com",
"'example2@example.com",
The property is definitely set on the user’s app metadata. Anyone know why it’s not being returned?
(Bonus question: why do the exported email addresses have a '
at the start of them?)
Hi @kkrp1 ,
I have reviewed your tenant and noticed that the majority of users do not have a property in app_metadata.foo
.
In this case, please ensure that at least one or more of your users contain this property so that this information is included in the user export.
Thanks,
Rueben
kkrp1
November 13, 2024, 6:15pm
4
Hi - thanks for the reply. I added the property to a specific user (now removed), just for testing. So the problem is not that users don’t have the property.
Based on what I posted, should it work?
Hi @kkrp1 ,
Thanks for the update.
Based on your post-login code snippet, I verified and tested it on my end and confirmed that it works correctly.
Let me know if you continue encountering issues.
Thanks,
Rueben
system
Closed
November 29, 2024, 5:03pm
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.