-
Notifications
You must be signed in to change notification settings - Fork 1.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
Unable to fetch Organisations list if membership is private #2470
Comments
@JyotstnaDeviChintala Thanks for reaching out. Happy to try to help on this! Can you share your code, just so we can see what API you're calling? What kind of API credential are you using? Is it an OAuth access token, a personal access token, something else...? |
Thankyou for your support. Heres the code: Fetching organizations list
using OAuth access token with scopes:
|
@JyotstnaDeviChintala Thanks for sharing the code! According to the API docs, that API "only lists public memberships, regardless of authentication". You'll need to use the "list organizations for the authenticated user" API instead. Can you try using the |
Thanks a lot ! it Worked. Doc was not clear and i got confused with the library documentation
//
|
Great! If you have time, it would be awesome if you could make a pull request updating the method description to make the "only lists public memberships, regardless of authentication" limitation clear. That'll help other people in the future I'm sure. |
…lear that only public memberships are returned Fixes #2470.
i have an C# wpf Desktop APP trying to fetch the organizations list i have access to or i'm a member of
This app has been added to trusted apps to my account and by the organization ( i own) also
Applications ->Authorised OAUth APPs ->MYAPP, its trusted by the Organization too.
Scopes used are :
user
andread:org
while fetching access tokenBut still using this token im unable to fetch full organizations list.
Organizations in which my membership is Public are being retrieved.
but for Organizations in which my membership is Private are not retrieved.
is this expected?
The text was updated successfully, but these errors were encountered: