Permission issues when using /assignLicense on Microsoft Graph API

Byron Hayes 41 Reputation points
2020-03-26T14:50:16.51+00:00

Getting permission issues when I use the /assignLicense endpoint.
For instance I get the error 'Insufficient privileges to complete the operation.' with code Authorization_RequestDenied.

Any thoughts, thanks in advanced!

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,449 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 104.3K Reputation points MVP
    2020-03-26T18:51:16.12+00:00

    Well, do you have the required permissions, as detailed in the documentation? https://video2.skills-academy.com/en-us/graph/api/user-assignlicense?view=graph-rest-1.0&tabs=http
    If you have granted them already do the app you're using, double-check that the token has the relevant scopes and request a new one as needed.


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.