Hello,
I’m trying to lookup a single user given a user’s id or email. However, when calling getUser
and specifying a user_id
using the ManagementClient
, the response appears to be every user instead of the single user I’m trying to lookup.
Here’s what I’m attempting:
var auth0 = new ManagementClient({
...
});
auth0.getUser({ user_id: "{USER ID}" }, (err, res) => {
if (err) {
console.log(err.message);
}
console.log(res);
});
I’ve tried passing an email address for user_id
and then user_id from the user info on the dashboard without the "email|"
prefix. Both returns every user.
I’ve been reading as much of the docs as my eyes can take from here:
Am I missing something completely obvious? Thanks for any help!