0

So I am trying to follow this section here: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/org-service/quick-start-org-service-console-app

Whether I use a connection string like:

OAuth:

"AuthType=OAuth;UserName={_userName};Password={_password};ClientId={_clientId};ClientSecret={_clientSecret};
Authority=https://login.microsoftonline.com/{_tenantId};Url={_url};RedirectUri=http://localhost;";

or ClientSecret:

$"AuthType=ClientSecret;ClientId={_clientId};ClientSecret={_clientSecret};
Authority=https://login.microsoftonline.com/{_tenantId};Url={_url};";

I keep getting the error: enter image description here

I check my Entra settings and followed what I thought was required for 'ClientSecret' enter image description here

and check API permissions: enter image description here

as well as the secret got generated: enter image description here

I even added my proxy user as an owner: enter image description here

I have no idea what is going wrong as it says anonymous and it's clearly I am using a dedicated application but is there something on dataverse that also needs to be set up? I have the user I am invoking there already setup but I am not sure if you can setup the Entra Auth setting anywhere.

Any help is much appreciated.

1 Answer 1

1
+100

the App you are using "Dataverse Application" in azure app. That needs to be associated with Dataverse (aka. Power Platform). Create an application user using "Maker Portal" (https://make.preview.powerapps.com). Select your environment and go to Application User. Provide your "Client ID" and assign it a Dataverse Role. Now when you authenticate it should go through. Because this is not 401, this is 403 (Forbidden access)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.