microsoft / microsoft/powerplatform-vscode

pac solution export as service principal denied when solution contains Power BI components

Open
#566 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
277
Forks
60
Avg merge
1d 1h
Merged PRs (30d)
14

Description

Using pac solution export to export a Power Apps solution containing Power BI components, the error message returned is:
Error: You can't export one or more Power BI components because you don't have the right permissions

Version: 1.21.8+ga93a2c3
Authentication as service principal is successful.

This command works when authenticated as a user account with the same permissions as the service principal.

The Power BI components are a small dataset and a paginated report. The service principal can export the report individually using the Export Report in Group endpoint GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/Export, but not with Export Report GET https://api.powerbi.com/v1.0/myorg/reports/{reportId}/Export.

Will this be supported in the future?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the pac solution export entry point and the Power BI export requests, comparing the group-scoped and unscoped endpoints described in the issue. Reproduce the failure with a service principal and a solution containing a dataset and paginated report; done means the solution exports successfully or the limitation is documented with a clear supported path.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, authentication, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.