CmdID

CmdID / PowerShell / Cmdlets / Test

Test-OAuthConnectivity

Use the Test-OAuthConnectivity cmdlet to test OAuth authentication to partner applications for a user. Exchange PowerShell reference

From the Exchange PowerShell reference 8 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

8 in the Exchange PowerShell reference
-ServiceThe Service parameter specifies the partner application.
-TargetUriThe TargetUri parameter specifies the URL for the service you want to test OAuth connectivity with.
-AppOnlyThe AppOnly switch specifies the cmdlet authenticates to the specified service as Exchange without any user context.
-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.
-MailboxThe Mailbox parameter specifies the mailbox for which you want to test OAuth connectivity to the specified partner application.
-ReloadConfigThe ReloadConfig switch reloads all the configuration settings from the Exchange configuration objects.
-UseCachedTokenThe UseCachedToken switch specifies that OAuth tries to use an existing, cached authorization token.
-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.