Building some CLI stuff with oclif.io, typescript, node-auth0:
There are three users and 6 clients in my test tenant. The following call to users.get() always returns all three users, whether I provide an actual user_id, a fake user_id, or no user_id:
auth0.users.get({ user_id: USER_ID }, function (err: any, user: any) {
if (err) {
// do a thing
}
console.log(user);
});
My equivalent call to clients.get() works as expected, only returning data for the specified client_id:
auth0.clients.get({ client_id: CLIENT_ID }, function (err: any, client: any) {
if (err) {
// do a thing
}
console.log(client);
});