Thursday, 12 December 2019

Server to Server Authentication in Power Automate (Microsoft Flow) - Service Prinicipal

Hi Everyone,

We all know that how important role that Server to Server Authentication is playing now a days. All CDS connections runs under some user context and sometimes we might have to go with Server to Server Authentication. When we setup Service Principal, it will automatically show the UI to give input of Client ID, Client Secret and Tenant ID. Here are the steps for the same.

Select Common Data Service on Flow and select the required action to perform.

Click on ... and select Add Connection.

Click on Connect with Service Prinicipal and enter the required details.

Here is the Step by Step process to configure Application User for getting Server to Server Authentication.

Hope this helps.

--
Happy 365'ing
Gopinath

3 comments:

  1. Hey Gopi!!!

    Does this work with the new CDS (Current) connection?

    You should check this connection out and post on doing all sorts of new things with it in Flow. You can call actions, setup multi triggers for 1 flow, it's the new stuff!

    To get it create a new solution and then create a flow flow w the solution. Search for common data service on the trigger and two items come up, one is Current and use this one to access all the new stuff. It's got 1 trigger which accounts for all the various trigger entry points.

    ReplyDelete
  2. If you have a flow with several CDS steps, is there a way to define a service principal connection once then reuse it for every relevant step, or do you have to enter the clientid, service and tenant id on each step?

    ReplyDelete