Least-privilege role to export a Power Platform Solution

Warren Gibbs 20 Reputation points
2026-11-26T15:39:41.16+00:00

What is the Microsoft-supported least-privilege Dataverse security role for automated Power Platform solution export?

We are designing an Azure DevOps Low Code ALM process in which a dedicated non-interactive Application User captures unmanaged solutions from a Power Platform DEV environment.

We specifically want to avoid assigning System Administrator to an automation identity whose only intended purpose is solution capture/export.

To understand the actual permission requirement, we created a dedicated LAB Application User with a custom Dataverse security role and allowed PowerPlatformExportSolution@2 to fail closed. We then added only the privilege explicitly requested by Dataverse and retried the exact same export.

This produced the following progression:

  1. prvReadAsyncOperation
    • Needed to read/monitor the asynchronous System Job created by solution export.
    1. prvReadSolution
      • Needed to read the Solution record.
      1. prvExportCustomization
        • Needed to perform the export operation.
        1. prvReadEntity
          • Needed for entity/table metadata.
          1. prvReadAttribute
            • Needed for attribute/column metadata.
            1. prvReadRelationship
              • Needed for relationship metadata.
              1. prvReadCustomization
                • Current blocker.

For the first six privileges, we were able to configure the corresponding permissions through the normal Power Platform security-role UI.

prvReadCustomization is different.

Dataverse reports:

PrivilegeName: prvReadCustomization

Privilege ID:

7bb3b531-ac45-4977-89c8-b99768e55ab8

We queried the Dataverse privilege metadata read-only and confirmed:

  • canbeglobal = Yes
  • canbebasic = No
  • canbelocal = No
  • canbedeep = No

We also inspected a Microsoft-provided role containing this privilege and found its role privilege depth mask is 8 (Organization / Global).

However, we cannot find an obvious Read Customizations privilege corresponding to prvReadCustomization in the current Power Platform security-role editor.

We deliberately stopped at this point rather than programmatically modifying roleprivileges or assigning a broad administrator role merely to make the pipeline succeed.

Additional findings

We inspected the Microsoft-provided Export Customizations (Solution Checker) role. It does contain prvReadCustomization, but it also contains a substantial set of additional read privileges and some SharePoint/User Settings write/create privileges.

We temporarily assigned this role alongside our custom LAB role as a test. The Application User's effective privilege count increased, but the automated solution export still reported prvReadCustomization as missing.

We also compared our small LAB role with System Customizer. In our environment the privilege inventory was approximately:

  • LAB capture role: 18 output rows
  • System Customizer: 5,927 output rows

This makes System Customizer substantially broader than we would like for a non-interactive identity whose only intended function is DEV solution capture.

Questions

  1. Is there a documented/supported minimum Dataverse security role for a Service Principal/Application User that only needs to execute pac solution export / PowerPlatformExportSolution@2?
  2. How should prvReadCustomization be assigned using the current Power Platform security-role UI?
  3. Is Export Customizations (Solution Checker) intended or supported for this ALM scenario, or is that role specifically scoped to Solution Checker?
  4. Does Microsoft recommend System Customizer for automated solution export, despite the substantially broader customization/data permissions?
  5. If a custom role is recommended, is there a Microsoft-supported baseline/template or documented set of privileges we should use rather than discovering hidden/internal privileges through runtime failures?

Our goal is not to achieve the mathematically smallest possible privilege set. We want the smallest Microsoft-supported, understandable, reproducible and auditable permission model for automated DEV solution capture.

Thanks

Warren

Microsoft Security | Microsoft Entra | Other
0 comments No comments

Answer accepted by question author
Joey Caldwell 80 Reputation points
2026-11-26T17:58:10.97+00:00

Hi Warren,

There isn’t a Microsoft-published “minimum privilege pack” that is specifically documented for pac solution export or the Azure DevOps PowerPlatformExportSolution@2 task. For a service principal used in ALM, the supported, predefined Dataverse roles that are clearly intended for solution work are System Customizer or System Administrator.

That matches how the platform describes those roles: in an environment with a Dataverse database, users who need to work with tables and the solution framework need System Customizer (Environment Maker alone does not grant Dataverse data/customization privileges). See:

For pipeline / Build Tools identities, Microsoft’s ALM guidance is the same pair of roles (System Customizer or System Administrator) on the service principal in each environment the pipeline uses:

So if your goal is a Microsoft-supported, understandable, auditable baseline rather than the mathematically smallest privilege set, System Customizer on the application user in the DEV environment is the documented least-privilege predefined role for this job. You are right that it is much broader than a capture-only identity; that breadth is why many teams still accept it for automation, or copy-and-reduce it (see below) rather than discovering privileges one failure at a time.

prvReadCustomization in the UI

prvReadCustomization is the Read privilege on the Customizations entity. In the classic security role editor it usually appears on the Customization tab, not as a miscellaneous privilege named prvReadCustomization. The modern role designer does not always surface every internal privilege clearly, which is consistent with what you are seeing.

I would not grant this by directly inserting rows into roleprivileges. That is unsupported and hard to audit.

If the modern UI will not show the privilege, use one of these supported approaches:

  1. Open the role in the classic security role editor and set Customization → Customizations → Read to Organization (your metadata already shows this privilege is global-only: canbeglobal = Yes, depth mask 8).
  2. Treat System Customizer as the supported baseline, or create a custom role copied from System Customizer (where copying is allowed) and then remove table data privileges you do not need, leaving customization/solution read + export privileges in place.

Uncertain: I have not found a current Learn article that names the exact modern-designer label for prvReadCustomization. If classic editor still does not show it in your environment, say so and we can narrow it further.

Export Customizations (Solution Checker)

Export Customizations (Solution Checker) is not documented as the ALM export role for your own application user. Microsoft describes it as part of the role set used by the Power Apps Checker application user ([email protected]), together with Solution Checker and Service Writer:

That also explains your test result: assigning that role can increase the privilege count and still leave prvReadCustomization unsatisfied for your application user / export path, because the role is scoped to the checker scenario.

Practical recommendation

  1. Assign System Customizer to the DEV application user and confirm PowerPlatformExportSolution@2 succeeds. That gives you a supported baseline.
  2. If you must go narrower, copy System Customizer to a custom “Solution Export” role and trim data privileges, but keep Organization-level Read on Customizations, Solution, Entity, Attribute, Relationship, and Async Operation, plus Export Customizations (prvExportCustomization). Re-test after each reduction.
  3. Avoid System Administrator for this identity, as you intended; it is supported, but not least privilege.

If you can share whether the classic role editor is available in that environment, and the exact PowerPlatformExportSolution@2 error after System Customizer is assigned, we can confirm whether any additional environment-level permission (for example Environment Maker) is also required in your setup.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.