-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Users API - return incorrect information #3496
Comments
According to the official documentation: https://docs.github.com/en/rest/orgs/members?apiVersion=2022-11-28#list-organization-members To debug issues like this, we typically use go-httpdebug to have If both If, however, Feel free to report back in this issue what your findings are after following the above advice. Thanks. |
@gmlewis official user schema does not include roles/ permissions into response, but Go library has it. ![]() |
Very frequently in this repo we reuse structs for many endpoints, and I am extremely hesitant to remove fields unless we can conclusively prove that a field is not used anywhere else. What can easily be done, and please let me know if you would like to do this, is to add a comment to the struct that it is NOT populated by the "following endpoints: ...". |
didn't take into a count that it is used in other endpoints where it can be returned. |
Users API: orgs/%v/members - return us a list of users.
User struct has a field : SiteAdmin which is *bool.
Am I right that this should return true if the user is an enterprise Owner?
if so it do not work as expected.
also other fields such as permissions/role name - are always empty or nil.
even with admin user permissions.
The text was updated successfully, but these errors were encountered: