Apply Sensitivity Label with Graph API Beta

Sascha Reichhardt 36 Reputation points
2021-10-19T21:00:32.557+00:00

Hi!

I am currently devleoping a Logic App which creates a M365 Group and then applying a sensitivity label.

The Logic App is failing with the Graph API Call:

PATCH https://graph.microsoft.com/beta/groups/r2##87ed8-b7#4-4#81-89fa-4b27####7ac3e

{
"assignedLabels": [
{
"labelId": "c25###b4-2##a-43#6-a##6-864b#####512d"
}
]
}

Returning Error 401: "Unauthorized\",\"message\":\"App-only token is not supported

I opened a Support Ticket already, but as this is in Beta State they can not support it. And recommeded to open Q&A here.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,645 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Kleijn, Marc de 1 Reputation point
    2022-12-22T08:31:07.74+00:00

    I have the same issue and have not found a solution yet.

    0 comments No comments

  2. Sascha Reichhardt 36 Reputation points
    2022-12-22T11:44:43.147+00:00

    Hi,

    I was able to fix it with the Office365 Groups Connector

    273246-image.png

    0 comments No comments

  3. Marc 1 Reputation point
    2022-12-22T13:37:46.733+00:00

    What type of action did you use for "AddLabel"?

    0 comments No comments