Is it possible to execute Graph API Create accessAssignments in a batch with app-only access?

Kenta Matsunaga 60 Reputation points
2024-01-19T01:37:39.04+00:00

Hello, I would like to execute the Create accessAssignments of the Graph API, which is listed on the following site, from a batch process. Please inform me if it is possible to run the targeted API with app-only access from a batch process. https://learn.microsoft.com/en-us/graph/api/delegatedadminrelationship-post-accessassignments?view=graph-rest-1.0&tabs=http

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 46,371 Reputation points
    2024-01-19T07:09:09.71+00:00

    Hi @Kenta Matsunaga

    No, this API only supports delegated permissions. Batch requests simply merge multiple API requests into one, which must meet the permission requirements of each API. If your batch runs in an application-only context, all API requests in the batch should support application permissions, otherwise the target API will throw an error.

    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.


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.