Error in subscribing SharePoint Library using webhooks

Ashish Kalsi 20 Reputation points
2024-06-26T09:15:53.2133333+00:00

I am trying to subscribe to SharePoint library using webhooks. I have all required credentials with permission, and I am getting the access token but when I am trying to subscribe it giving error
Failed to register webhook. Status code: 401

b'Unsupported app only token.'

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 46,371 Reputation points
    2024-06-27T06:42:41.6933333+00:00

    Hi @Ashish Kalsi

    From the error message, it seems that application permissions are not supported yet. Please try to grant the corresponding delegated permissions to the calling app, and then request the access token using a delegated flow with user participation, such as auth code flow or ROPC flow.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    1 person found this answer helpful.

0 additional answers

Sort by: Most 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.