-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
List all users does not get roles #266
Comments
I had a look at code and I think issue is Let me know if you want a PR as it would update quite a few places in code. |
Appart from the boolean "embed" property of the GetAll function, there should be an "edit" property in order to retrieve everything. |
Can the proposed "edit" property be applied to all the methods in the |
@ThomasPe, is there a way this issue can be escalated? It's actually a blocker (for me) not being able to get roles via these |
i would also need the roles for current user |
I'll try to look at this soon(ish) |
+1 - I would like this fix as well. It sounds like adding ?context=edit is all that is required (from non C# libraries) https://stackoverflow.com/questions/46785783/wordpress-api-wont-return-all-users-fields I am going to try to add Bindalf's update. |
https://github.com/TREVORPINKS/WordPressPCL/blob/master/WordPressPCL/Client/Users.cs This fixes the User.GetAllAsync method to return roles and all the other fields. I think the GetAllAsync method should default to TRUE/TRUE for the embed/auth params too. Because, I think most people would want all the fields by default. (and if they want performance they can play around with those other params). |
My hero |
Currently doing:
Will hit the endpoint:
But this endpoint does not return users roles.
To return roles you need to pass edit context like so:
This needs to be an option on
GetAll()
The text was updated successfully, but these errors were encountered: