I was thinking of a change for the functions in Connect.ps1. The changes would just allow parameter pass-thru for the underlying modules allowing different ways to connect.
Hi, sorry for the late response. I just got back from holiday. Thanks for providing the code snippets, they look useful, and I'll play around with them a bit and add them to the next update!
I was thinking of a change for the functions in
Connect.ps1
. The changes would just allow parameter pass-thru for the underlying modules allowing different ways to connect.Here is what I have so far:
This would allow you to pass the originating module parameters like below:
Connect-M365 -AccessToken $access_token -UserPrincipalName 'c@lvin.ie'