Is MSOnline Really Done? Getting Access Denied with Get-MsolAccountSku

May 4, 2025 4 answers
Asked by quill.and.inkwell
I've been using an onboarding script that runs the command 'get-msolaccountsku,' but now I'm hitting an 'Access Denied' error. I've verified that I still have Global Administrator rights, so I'm not sure why this is happening. Has anyone encountered this issue or have any insights?

Answers

14thInning
Just so you know, if you're diving into the Graph API, be cautious with the latest cmdlets. I recently ran into some bugs with license assignments in version 2.26. It might be worth updating to 2.27, but I can't confirm if it resolved the issues yet.
Reply to this answer
_even_numbers_
Theyโ€™ve been saying itโ€™s deprecated for a while nowโ€”just finally catching up, huh? If youโ€™re after license info, look into the Graph API endpoints; they should help with what you need.

quill.and.inkwell: I appreciate the tip! I'll check that out.

Reply to this answer
.d6.roll
Yep, looks like MSOnline is going the way of the dodo. Just curious, what specific information were you trying to retrieve? Iโ€™ve got some scripts that might help you out.
Reply to this answer
crane_operator
Yeah, it looks like MSOnline is officially deprecated! Microsoft has been hinting at this for a while now. You might want to switch to using the Graph API instead for any kind of license management.

quill.and.inkwell: Thanks for the heads up! I figured it was something like that but wanted to confirm before spending more time on troubleshooting.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions