Sending notification to everyone except user X (the initiator)

abimsft 1 Reputation point Microsoft Employee
2022-06-13T11:25:17.303+00:00

Scenario: User A, B & C joined a group (group is modifying a common resource/document). User A makes a change to the document which needs to be notified to the group (except User A).
Question: How can the developer avoid sending the notification to "User A"?
Comment: The developers do not intend to handle this scenario through UI code.
If there were a function to retrieve list of users subscribed to a group, this situation could have been addressed.

Any ideas/alternatives?

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
70 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 15,791 Reputation points Microsoft Employee
    2022-06-15T01:33:55.87+00:00

    @abimsft This question has been asked in the past about being able to obtain a list of users via a webPubSubTrigger. We reached out to the Azure WebPubSub product group for that question and the product group verified that this is not possible at this time.

    As a result, I am unaware of how to achieve what you have proposed.

    My suggestion would be to reach out to the "Azure Web PubSub Service Product Team" alias, and they might have further ideas on a workaround, or they might want to understand your use case better so they can understand the need for this capability and possibly consider a feature request.

    Please let me know if you have any further questions or concerns on this topic or contacting the product group directly.

    0 comments No comments