Open
Description
This relates to #7
Look into the Auth0 Management Client being used and refactor for the most recent version. We want to optimize the logic in manage-api.js which gets all TPEN Users and their roles to list them for administrators. See https://auth0.github.io/node-auth0/classes/management.UsersManager.html#getAll
The current logic is
get users in groups according to roles, attach role tag to user object, merge roles of users that appear in multiple groups
The optimized logic uses the management client to
Get all users whose app_metadata contains "tpen". Include their profile info and roles.