Auth0 Home Blog Docs

Does the Auth0 Managment SDK for node allow for advanced search

Does the node SDK allow for searching like that which is available via the REST API? https://auth0.com/docs/users/search/v3/query-syntax

The node method I’m referring to is “getUsers”

http://auth0.github.io/node-auth0/module-management.ManagementClient.html#getUsers

I would like to search via app_metadata

Thanks!

Hi @ryantomaselli,

It specifies search engine, so I would assume yes, but the docs seems to be lacking any info about it. I’m going to dig in on this and I will see what I can find.

Thanks,
Dan

Thanks @dan.woda!

I hope you don’t mind my tacking on a related question…

If I’m calling the https://auth0.com/docs/api/management/v2#!/Users/get_users end point to get a list of users, what is the best way to also return the roles for these users? Will I need to query the roles for each user returned in separate calls?

You have two options here:

Get the roles by user - https://auth0.com/docs/api/management/v2#!/Users/get_user_roles

Get the users by role - https://auth0.com/docs/api/management/v2#!/Roles/get_role_user

3 posts were split to a new topic: GraphQL and the Management API