Thanks ngb. I'm not fluent with powershell yet, so before I try to implement this I want to make sure I know what I'm looking at. This portion here: -userid $_.id
I'd have to replace $_ with the stored credential at $<graphCredential>?
Example: $myCredential ... $myCredential.id