Guest users got 403 when fetching chat/channel members

Jing Zhao 20 Reputation points Microsoft Employee
2023-01-30T23:05:04.8533333+00:00

Hi, it seems all the guest users would see 403 error when fetching chat/channel members.

 

GET /chats/{chatId}/members

GET /channels/{channelId}/members

 

Sample error response:

{     "error": {         "code": "Forbidden",         "message": "InsufficientPrivileges",         "innerError": {             "message": "AclCheckFailed-The initiator 28:app:a0783b62-a438-4df4-b01a-1922ce21ddbe_3e050dd7-7815-46a0-8263-b73168a42c10 is not a member of the roster 01558ad7-48bf-412b-9493-67a5e223873e in the generic thread 19:5dc8eb44-914e-4d99-9e6a-979bec147c3e_fe98a406-419c-4ebd-9943-6324a76b7fd1@unq.gbl.spaces",             "code": "1",             "innerError": {},             "date": "2023-01-30T22:54:58",             "request-id": "a089703d-68ad-4e93-a216-0f8494ae004e",             "client-request-id": "a089703d-68ad-4e93-a216-0f8494ae004e"         }     } }

 

I'm wondering if this error is by design or not? If it's by design to disallow guest users to get conversation members via Graph API, is there any other approach to get the conversation members for guest users? Thanks!

 

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,645 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 37,216 Reputation points
    2023-01-31T09:36:21.8733333+00:00

    Hi @Jing Zhao

    This is by design, and currently guest users cannot use the graph API to list chat members, even if the guest has already been added to the chat. I can also reproduce your issue locally:

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful