Forum Discussion
Support for Unattended scripting in delegation scenarios for Exchange Online Powershell EXOV2 module
Thanks VasilMichev
We use Secure app model as documented in https://docs.microsoft.com/en-us/powershell/partnercenter/multi-factor-auth?view=partnercenterps-3.0#exchange-online-powershell
However the refresh token is fetched via the API
https://login.microsoftonline.com/[azure_tenant_id]/oauth2/v2.0/token
Here clientID and clientSecrets are the azure application secretId and value. This is the application which is in a different account and has the delegated access
We will checks and evaluate the latest preview version which gets rid of WinRm if that works for us.
Thank you.
Regards,
Megaraj
- mmahadikarSep 14, 2022Copper Contributor
Thanks VasilMichev
I was trying to use the preview version of EXO v2 servlet. I was not able to use it with unattended scripting for partner/delegation scenarios. Is there a document that describes this use-case?
I tried with the parameter -DelegatedOrganization parameter, however this opens up a web page for sign-in. I tried by suppling the -Credential parameter where the credential is the refresh OAuth token and this also errors out.
Could you please help us out here?- VasilMichevSep 14, 2022MVPSorry, I don't have a partner account to play with, so I haven't tested this scenario.