security-role

Automate Dataverse security role provisioning and privilege bindings via Web API calls.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/Kazuya0628/Quotation-Work-Automation-System --skill security-role
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-role
Source: https://github.com/Kazuya0628/Quotation-Work-Automation-System/tree/main/.github/skills/security-role
Command: npx skills add https://github.com/Kazuya0628/Quotation-Work-Automation-System --skill security-role

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, python-dotenv, and includes scripts (resource) and references (resource) components.

What problem does it solve?

The security-role skill enables organizations to programmatically create and configure Dataverse security roles within a single solution, ensuring consistent RBAC across the data model and platform.

Core Features & Use Cases

  • Create custom security roles via the Dataverse Web API (roles and privileges) inside a unified solution context.
  • Copy the standard Basic User permissions as a baseline and apply custom table privileges using ReplacePrivilegesRole and batched AddPrivilegesRole calls.
  • Validate solution containment, optionally link to a Power Apps AppModule, and support model-driven apps integration.

Quick Start

Run the deploy_security_role.py script after configuring .env with DATAVERSE_URL, TENANT_ID, SOLUTION_NAME, and PUBLISHER_PREFIX to deploy the security roles to your environment.

Frequently Asked Questions about security-role

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Dataverse security role deployment using the Web API?

Automate Dataverse security role deployment by using scripts to call the Web API, which provisions roles and binds privileges within a single solution context. This ensures consistent RBAC across your Power Platform data model.

Can I copy Basic User permissions when creating custom Dataverse security roles?

Yes, you can copy Basic User permissions as a baseline when creating custom Dataverse security roles. The process replaces privileges via ReplacePrivilegesRole and applies custom table privileges using batched AddPrivilegesRole calls.

Do I need to configure environment variables to deploy Power Platform RBAC roles?

Yes, you need to configure a .env file with DATAVERSE_URL, TENANT_ID, SOLUTION_NAME, and PUBLISHER_PREFIX to deploy Power Platform RBAC roles. These variables scope the deployment to your specific Dataverse environment and solution.

Does this Dataverse RBAC automation support linking security roles to AppModules?

Yes, this Dataverse RBAC automation optionally associates security roles with AppModules. This supports model-driven apps integration by validating solution containment and linking roles directly to your Power Apps AppModule components.

What is the best way to ensure custom privileges are included in a Dataverse solution?

The best way to ensure custom privileges are included in a Dataverse solution is to verify solution inclusion after batching AddPrivilegesRole calls. The automated process discovers the root BU, collects solution tables, and validates containment.