Hi The_Exchange_Team ,
With the New-PSSession (V1) method retiring in June 2023 how will that impact CSP's who need to do unattended scripting for their Customers that they have Delegated permissions for (in the Partner Center, using GDAP)?
The page on "App-only authentication for unattended scripts in Exchange Online PowerShell and Security & Compliance PowerShell" was updated in early Jan 2023 to indicate that "Delegated scenarios are supported in Exchange Online using multi-tenant applications".
BUT Step 4b is unclear how to use Delegated permissions with GDAP for unattended scripting, it seems to imply that we'll have to get the Customers to manually click a URL:
It says to "generate an admin consent URL for each customer tenant" and then "an admin in the customer tenant should open the" URL ... How will we do that with hundreds or thousands of Customers?!
There should be a way to leverage Delegated Auth Permissions with GDAP for unattended scripting for all the Customers we have in the Partner Center. Perhaps using the new -AccessToken param on Connect-ExchangeOnline (in EXO V3.1-preview1)? We are currently using New-PartnerAccessToken to generate Access Tokens and then New-PSSession.
We need an EXO V3 version of that. Can more info be provided please? Thanks so much!
-Saul