We have many command line apps that are scheduled and have been using basic authentication with XRMTooling and a Connection String.
We are now faced with using OAuth.
I would like to create a single Azure App to access Dynamics and then supply a username (and password if necessary) to run as that user as opposed to tying a single user to the app. Is that possible?
I have got my head around Server to Server which is Create the App, add a new User Account in Power Platform with permission and when you use the Client Secret it will just work.
For our scheduled jobs I want more flexibility so I think I am looking for API type access. I am finding instructions are a but muddy. Do I need an App per "App ID - User" combination? Feels wasteful when I would like to access as one of two or three users.
We already have Service Accounts in AD but all the instructions I can see relate to adding a new user in Power Platform where we already have users for various purposes. |can't see how to associate a pre-existing Non-Interactive account with an App.