question

DineshPathak-5960 avatar image
0 Votes"
DineshPathak-5960 asked ·

Unable to send Activity Notifications using Graph API

Hi Team,

I am trying to to send Activity Notifications using https://docs.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://docs.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?

office-teams-app-devmicrosoft-graph-teamwork
· 8
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Adding right tags/teams to assist.

1 Vote 1 ·

Hi @DineshPathak-5960,

Could you please have a look on this document and verify supported account types.


0 Votes 0 ·
DineshPathak-5960 avatar image DineshPathak-5960 RamaMohanaCharyAkavarapu-4424 ·

Thanks @RamaMohanaCharyAkavarapu-4424,

I did follow the same article to register my app.

Could you please spare some time to have a quick remote session ?

0 Votes 0 ·

Hi @DineshPathak-5960,

Could you please confirm us that whether you have installed the app to the chat and user should be added to the chat.
Then only notification will be sent.

0 Votes 0 ·
Show more comments

1 Answer

RamaMohanaCharyAkavarapu-4424 avatar image
0 Votes"
RamaMohanaCharyAkavarapu-4424 answered ·

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


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.