Skip to content
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

New API: Verify User Exists in Group #12609

Open
uplift opened this issue May 31, 2024 · 1 comment
Open

New API: Verify User Exists in Group #12609

uplift opened this issue May 31, 2024 · 1 comment

Comments

@uplift
Copy link
Contributor

uplift commented May 31, 2024

Description

Would it be possible to add a new groups api to check if a user is part of a group or not? (If it already exists please can you point me at it)

Something like

HEAD /groups/{slug}/{uid}

This would help us when getting a users state externally to nodebb and joining/leaving a group based on that state. At moment trying to leave a group you aren't a member of causes an error. With a verify api we could check group status before sending any join/leave api requests and save us sending unneeded requests.

Community forum reference

No response

@julianlam
Copy link
Member

I believe currently the closest you can get it GET /groups/{slug}/members?query=. Pass in the user slug to search, and then check users in response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants