Additional Microsoft Entra services and features related to identity, access, and network security
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:
- 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). - 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
- Assign System Customizer to the DEV application user and confirm
PowerPlatformExportSolution@2succeeds. That gives you a supported baseline. - 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. - 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.