Forum Discussion
Managing shared mailbox access using PowerShell (at onboarding) using modern authentication
Hello all, as the Microsoft Exchange team currently has a fixed final date on when basic authentication will be disabled we are left with a big question mark how we will automatically manage out shared mailbox access at the onboarding of our users. Right now we basically have a powershell script running that connects to exchange online using a pssession with basic authentication (which has no support for modern authentication). However the EXOV2 module does have support for modern authentication, however you cant set mailbox access using this module, as it does not have the required CMDlets to do so.
So I wondered, has anybody found the way to manage (shared)mailbox access rights using modern authentication, so not basic authentication? I've looked at the Microsoft Graph, using appplications, possibilities in Azure Automation but nothing has quite solved it yet. The only that somewhat worked was using the Azure cloud shell, however you cant automate using that shell as far as I know.
- The V2 module supports all the "old-style" cmdlets, only the connectivity part is changed. You can automate it by leveraging certificate-based auth: https://docs.microsoft.com/en-us/powershell/exchange/app-only-auth-powershell-v2?view=exchange-ps
4 Replies
- The V2 module supports all the "old-style" cmdlets, only the connectivity part is changed. You can automate it by leveraging certificate-based auth: https://docs.microsoft.com/en-us/powershell/exchange/app-only-auth-powershell-v2?view=exchange-ps
- Twan_DuvigneauCopper ContributorSo after connecting to exchange online using the V2 module I can still use the commands as I did so before? And do they keep supported when legacy authentication will be disabled?
- Yes and yes.