dyn365-ce-vsts-tasks icon indicating copy to clipboard operation
dyn365-ce-vsts-tasks copied to clipboard

Does GetOnlineInstanceByName support for Client Secret?

Open filcole opened this issue 4 years ago • 1 comments

When using Client Id / Client Secret Authentication in the username and password fields of the "MSCRM Get Online Instance By Name" task (v10.*) the task is failing with message:

TenantId is required when using Client Id / Client Secret Authentication

I'm unsure where this error message is being returned from. Is this supported? Thanks

filcole avatar Feb 07 '20 00:02 filcole

There isn't much documentation on what -Credential currently supports. I have only used it with username/password.

But browsing through the APIs I can see this: https://docs.microsoft.com/en-us/powershell/module/microsoft.xrm.onlinemanagementapi/enable-crmmanagementapp?view=pa-ps-latest

Have you tried calling this API with a username/password and passing the clientid that you want to use for further calls?

WaelHamze avatar Feb 11 '20 20:02 WaelHamze