You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggest you receive a 403 when You aren’t a member of the room.. This suggest to me that for these endpoints to work, you need to be a member of the room.
Upon testing against Synapse, I noticed (A) is allowed for guest users, but (B) isn't. This isn't clear in the current documentation.
Background: I was researching for a way for guest users to list room members. Based on the documentation I figured it wasn't possible, but then decided to give it a try nonetheless. For me, it's nice that A works, but it would help if it's documented accordingly
The text was updated successfully, but these errors were encountered:
YousefED
added
the
clarification
An area where the expected behaviour is understood, but the spec could do with being more explicit
label
Oct 22, 2021
/joined_members was indeed added after the fact for appservices, but given it's meant to be behind a high-performance cache of sorts it's probably safe for guests too. Would be a trivial MSC :)
My feedback would still be to clarify this also at the documentation of the API endpoint. E.g.:
A: This is now technically incorrect, because as a guest account, even one that hasn't joined the room, I get all the members in the room and a 200. According to the docs, I'd expect a 403
B: It also makes me wonder whether this statement is correct: If you have left the room then this will be the members of the room when you left.. Because that would imply that a guest user who has never joined a room, gets a more accurate / up-to-date response than a user who's left the room previously. (that sounds like weird behaviour / weird spec, or a mistake in the documentation)
richvdh
transferred this issue from matrix-org/matrix-spec-proposals
Mar 2, 2022
Both
(A): https://spec.matrix.org/unstable/client-server-api/#get_matrixclientv3roomsroomidmembers
(B): https://spec.matrix.org/unstable/client-server-api/#get_matrixclientv3roomsroomidjoined_members
Suggest you receive a 403 when
You aren’t a member of the room.
. This suggest to me that for these endpoints to work, you need to be a member of the room.Upon testing against Synapse, I noticed (A) is allowed for guest users, but (B) isn't. This isn't clear in the current documentation.
Background: I was researching for a way for guest users to list room members. Based on the documentation I figured it wasn't possible, but then decided to give it a try nonetheless. For me, it's nice that A works, but it would help if it's documented accordingly
The text was updated successfully, but these errors were encountered: