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.
Permission issues when using /assignLicense on Microsoft Graph API
Byron Hayes
41
Reputation points
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!
1 answer
Sort by: Most helpful
-
Vasil Michev 104.3K Reputation points MVP
2020-03-26T18:51:16.12+00:00