Get list of users from AD/Int Source

I am wondering if there is a way to query the AD/Internal source to return a list of users.

Generally the client is logged in as a generic user, and occasionally logged in by a technician or engineer with higher permissions, however we still log the “operator” user, but this is just a simple dropdown of users that does not actually auth, just used for logging.

Is there a way to return a dataset with all the users from a specific role?

:bump:

You can use system.user.getUsers(source) to get a list of Users, and then filter those Users to get only the ones with a specific role. Then, if you really need a dataset, you can create one from that filtered list.