Forum Discussion
Connect to Office365 via Powershell as a Delegate Access Partner with MFA enabled
- Mar 01, 2018
We've brought this issue several times already, but afaik it's still not supported. On the other hand, the "sister" SCC MFA module does support delegate access via the corresponding parameter:
Connect-IPPSSession -DelegatedOrganization
It's just another example on how the different teams at Microsoft fail to talk to each other...
Hi Pablo,
thank you for your reply. I thought the cmdlet´s use the same targets in general.
But the original question is how to connect to office 365 / Exchange Online via PS with MFA as a delegate access partner.
Jakob
I couldn't find any documentation on connecting to EXO as a delegate with MFA. I don't even know if it's possible. This is what I would try:
1. Follow the instructions in the URL to install EXO MFA module, open it and run Connect-EXOPSSession as per the documentation. After connected run your $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell-liveid?DelegatedOrg=<customer tenant domain name>-Credential $UserCredential -Authentication Basic -AllowRedirection
- VasilMichevMar 01, 2018MVP
We've brought this issue several times already, but afaik it's still not supported. On the other hand, the "sister" SCC MFA module does support delegate access via the corresponding parameter:
Connect-IPPSSession -DelegatedOrganization
It's just another example on how the different teams at Microsoft fail to talk to each other...
- AnonymousMar 01, 2018
Hi Vasil,
thank you again... I´ve missed the -delegatedorganization switch for the connect-ippssession command.
So... unfortunately we can´t support (except Security & Compliance) our customers via PS with mfa in this constellation. That´s odd...
...back to the drawing board
- AnonymousMar 01, 2018
So... please vote for: https://office365.uservoice.com/forums/264636-general/suggestions/33233917-powershell-mfa-for-csp-delegated-admin-privileges
:)