Team's intgeration using servicenow

ReddyPrakasL
Tera Contributor

Actually, I had created the team's integration using ServiceNow. When a message is to be posted into the existing channel I'm getting the insufficient Privileges error 403 can anyone help me regarding it.

like what is the content-type: application/json & also the payload content and the endpoint format as i'm using this graph Api format for the reference https://graph.microsoft.com/v1.0/teams/<team-id>/channels/<channel-id>/messages

6 REPLIES 6

M Iftikhar
Mega Sage

Hi @ReddyPrakasL,

 

The 403 insufficient privileges error usually means the app you’re using in ServiceNow doesn’t have the correct permissions in Azure AD / Microsoft Graph. Please check:

Permissions in Azure AD

  • To post a message in a Teams channel, your app needs the Graph API permission:

    • ChannelMessage.Send (delegated) or

    • ChannelMessage.Send (application) if you’re using client credentials flow.

  • Make sure admin consent has been granted.

Also check the below link:
Microsoft Teams Communications spoke gives Error 403 : Forbidden username/password combo - Support a...

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

  • ChannelMessage.Send (delegated) or

  • ChannelMessage.Send (application) if you’re using client credentials flow.

    actually, I had used these permissions but getting this error