Hi, we’re using Amity Server APIs and facing an unexpected behavior. Users are joining our community immediately even though requiresJoinApproval is set to true.
Our setup:- Using Amity Server REST APIs (not SDK)
- Authentication: POST `/v4/authentication/token` with `X-Server-Key` header
- Session creation: POST `/v4/sessions` with the auth token
- Community join: POST `/v3/communities/{id}/join` with session token
Hello @Pragyan_Deep_Gogoi , may we confirm our understanding — a user with requiresJoinApproval set to true is able to access the community without moderator approval, correct?
Also, could you please confirm the community type — is it a private & visible, private & hidden or public community?
The community is Private & hidden and requiresJoinApproval in that community is set to true.
Now I call the join community API using the session key for that user. But the user is directly added to the community. It should show in the Pending Join Request list in the dashboard.
Hello @Pragyan_Deep_Gogoi , We tested this scenario on API v4 but were not able to reproduce the issue — users joining a private & hidden community (with requiresJoinApproval = true) correctly appear in the Pending Join Request list.
Please try again using the following endpoint and see if the behavior still occurs on your side:
POST /api/v4/communities/{communityId}/join
I was using v3 of the join API. That was the issue. Its working on this v4. Thanks for the support
1 Like