Desperately looking for a way to login to Office365 in a Hybrid environment (with an ADFS server).
I want to write a script that connects to a sharepoint site depending on group membership,
So it has to log on to O365 group membership retrieve and close session.
I will need to use the ADFS server to login to O365 using SSO, only how?
Is there powershell hero who knows how to accomplish this