Could you please add applications permissions and verify the creation of auth token.
Please have a look on this document.
Unable to send Activity Notifications using Graph API
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?
1 answer
Sort by: Most helpful
-
Rama-MSFT 176 Reputation points
2021-03-05T03:56:39.877+00:00