question

ByronHayes-6267 avatar image
0 Votes"
ByronHayes-6267 asked ·

Permission issues when using /assignLicense on Microsoft Graph API

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!

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

michev avatar image
0 Votes"
michev answered ·

Well, do you have the required permissions, as detailed in the documentation? https://docs.microsoft.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.

· 3 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@michev i was supposed to close this yesterday. was able to get it to work using the same permissions rewuire o revoke sessions. Thanks, cheers!

0 Votes 0 · ·
michev avatar image michev ByronHayes-6267 ·

As long as you got it working :) Some moderator might mark it later.

0 Votes 0 · ·

Hello @ByronHayes-6267 ,

Great to know that you were able to get it working . As only the OP can accept the relevant post as answer , I would request you to accept it as answer in the interest of the community so that the relevancy of the answer improves.

Thank you.

0 Votes 0 · ·