Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pac data export not working with application authentication #269

Open
OmarChen opened this issue Dec 19, 2022 · 1 comment
Open

Pac data export not working with application authentication #269

OmarChen opened this issue Dec 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@OmarChen
Copy link

OmarChen commented Dec 19, 2022

When I try to download data from Dataverse with an application user, I receive the below error message.

First I run the command to create an auth profile with the following command

pac auth create --url https://xxxxxxx.crm4.dynamics.com/ --name myenvironment --applicationId xxxxx-xxx-xx-xx --clientSecret xxxxxxxxxxxxxxx --tenant xxxx-xx-xxx-xxxx

After that I execute the following command

pac data export --environment myenvironment --schemaFile .\myschema.xml --dataFile mydata.zip

Which results in the follwing error message

Microsoft PowerPlatform CLI
Version: 1.20.3+ga66a744

Error: Organization listing requires a User auth profile, not an Application auth profile


```[tasklist]
### Tasks
@petrochuk petrochuk added the enhancement New feature or request label Jun 18, 2023
@petrochuk
Copy link
Contributor

The issue here is export command tries to resolve environment parameter and to do that it needs to connect to Global Discovery Service. This service doesn't support connections with Application & Secret auth types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants