How to Notify Teams Admins Without Admin Consent

石川 敦己 255 Reputation points
2025-03-05T09:11:44.99+00:00

Hello,

I am developing a feature that allows users to request a review of a Teams app by the Teams administrator before publishing it to the organization. After submitting the request, I would like to notify the Teams administrator, either by sending a message or triggering a simple notification.

However, I understand that notifications are disabled by default for Teams administrators. Ideally, I want general users to be able to actively send a notification or message to the administrator.

I initially considered using the Activity Feed Notification API, but I couldn’t find a way for a general user to retrieve the Teams administrator’s account information.

A critical requirement is that these operations should not require elevated permissions such as admin consent. The implementation should work with delegated permissions granted to a regular user.

Is there any way to achieve this using Microsoft Graph API?

I appreciate your support.

Microsoft Teams | Development
{count} votes

1 answer

Sort by: Most helpful
  1. Meghana-MSFT 4,116 Reputation points Microsoft External Staff
    2025-03-06T06:48:58.1233333+00:00

    Hi 石川 敦己 - You can use delegated permission "User.ReadBasic.All" to retrieve basic details of Administrator. You can use below API endpoint to get basic details -

    User's image

    You can then list chats using "Chat.ReadBasic_"_ permission to get chat-id with Admin.

    User's image

    You can then send message to above chat id which requires "ChatMessage.Send" permission.

    User's image

    All the above API calls were made using delegated permissions.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.