Well, do you have the required permissions, as detailed in the documentation? https://xtls-v4.hkg1.meaqua.org/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!
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
A cloud-based identity and access management service for securing user authentication and resource access
1 answer
Sort by: Most helpful
-
Vasil Michev 123.6K Reputation points MVP Volunteer Moderator2020-03-26T18:51:16.12+00:00