-
Notifications
You must be signed in to change notification settings - Fork 52
Groups API clarification #242
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
Comments
@jmgasper Please use the below end point with Authorization header, it should return the groups the user belongs to.
E.g. https://api.topcoder-dev.com/v5/groups/memberGroups/8547899 cc @rootelement |
@rootelement / @sharathkumaranbu - I don't think that's what I'm looking for. I want the list of groups, like we get from just GET 'ing /v5/groups, but only those the current user is allows to launch challenges for.
|
@jmgasper Please use this
It looks like membershipType=group is used to fetch groups which is part of another groups. The above query is working fine for me. Ideally speaking, the below end point should have been made robust to return the groups which the user has access to.
The work around way by calling |
@rootelement - Just FYI, we may want to tweak this in the groups API. Not sure who handles that. ☝️ |
Can we close it @jmgasper? |
Closing as it seems to be working fine for me. I can see only my groups being returned for the groups api call. |
Currently, our call to get the groups for launching a challenge returns all groups, not just the groups the user has access to
Currently
We're calling GET
https://api.topcoder-dev.com/v5/groups
with anAuthorization
header for the userChange
I'm expecting we'll have to make a call like this, with the
memberId
andmembershipType
, but I want to make sure this will actually return the groups the user has access to. ForTonyJ
in dev, it returns an empty list.https://api.topcoder-dev.com/v5/groups?memberId=8547899&membershipType=group
Expectation
I need to have a call that returns just the groups the current has access to so I can update the challenge-engine-UI to only show those instead of all groups. Please clarify what the request should look like.
The text was updated successfully, but these errors were encountered: