-
-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Users in specified role(s) #300
Comments
Don't know if this is the cleanest way to do it, but could you not just add a parameter to GetAllUsers that takes a list of roles (ex. List roles = null) and then modify the method as follows:
I tried building to test, but I keep getting errors about versions strings and metadata. |
So I figured out building it and added the dll to my project to test and can confirm that it works. I just added to that method because it was easy/quick, but perhaps it makes sense to create separate methods, like GetAllAgents, GetAllEndUsers, GetAllAdmins and GetAllUsersInRoles. Also, there's enterprise roles that use different query string (permission_set={role_id}) and that can only be called 1 at a time, so might want another method for that too. Just my 2 cents, thanks for all you're hard work, makes my life much easier! |
All looks good to me Please test the myget build https://www.myget.org/feed/zendeskapi_v2_prerelease/package/nuget/ZendeskApi_v2 |
Is there a way to get all the users in a certain role? Can't seem to find it and pulling all users and then filtering is quite inefficient when you have a lot of end-users. I for example just want to currently pull agents and admins
I found this on zendesk https://developer.zendesk.com/rest_api/docs/core/users#filters
The text was updated successfully, but these errors were encountered: