Unable to send Activity Notifications using Graph API

Dinesh Pathak 1 Reputation point
2021-02-08T07:43:34.053+00:00

Hi Team,

I am trying to to send Activity Notifications using https://learn.microsoft.com/en-us/graph/teams-send-activityfeednotifications through

All required permission like TeamsActivity.Send, UserActivity.ReadWrite.CreatedByApp etc already assigned in registered App

JWT - Output of access below:

scp": "Directory.Read.All Group.Read.All GroupMember.Read.All Team.ReadBasic.All TeamMember.Read.All TeamsActivity.Read TeamsActivity.Send TeamsApp.Read TeamsApp.Read.All User.Read User.Read.All User.ReadBasic.All UserActivity.ReadWrite.CreatedByApp UserAuthenticationMethod.Read UserNotification.ReadWrite.CreatedByApp profile openid email"

Interestingly, though all the required permissions as mentioned in Microsoft resource https://learn.microsoft.com/en-us/graph/api/team-sendactivitynotification?view=graph-rest-beta&tabs=http have been assigned to registered App in Azure even then its saying

Postman Query - POST https://graph.microsoft.com/beta/teams/{teamID}/sendActivityNotification but its throwing error below.

In POSTMAN - "Application with AAD App Id {appID} is not authorized to generate notifications about 'https://graph.microsoft.com/beta/teams/{teamID}' to the recipient"

In Graph Explorer - "You need to consent to the permissions on the Modify permissions tab" but there is nothing displayed under Modify Permissions tab

Please advise how to resolve this issue?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,827 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,918 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rama-MSFT 176 Reputation points
    2021-03-05T03:56:39.877+00:00

    Could you please add applications permissions and verify the creation of auth token.
    Please have a look on this document.

    0 comments No comments