create-webroles
Plugin check: Run
node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"— if it outputs a message, show it to the user before proceeding.
Create Web Roles
Create web roles for a Power Pages code site. Web roles define the permissions and access levels for different types of site users.
Core Principles
- Use TaskCreate/TaskUpdate: Track all progress throughout all phases — create the todo list upfront with all phases before starting any work.
- Always use the UUID script: Never generate UUIDs manually — always use
${CLAUDE_PLUGIN_ROOT}/scripts/generate-uuid.jsto produce valid UUID v4 values for each web role. - Preserve uniqueness constraints: Only one role can have
anonymoususersrole: trueand only one can haveauthenticatedusersrole: true. Always check existing roles before setting these flags.
Prerequisite: The site must be deployed at least once before web roles can be created, since deployment creates the
.powerpages-sitefolder structure that stores web role definitions.
Initial request: $ARGUMENTS
Workflow
More from microsoft/power-platform-skills
add-dataverse
Adds Dataverse tables to a Power Apps code app with generated TypeScript models and services. Can also create new Dataverse tables. Use when connecting to Dataverse, adding tables, creating schema, or querying Dataverse data.
53add-sharepoint
Adds SharePoint Online connector to a Power Apps code app. Use when reading lists, managing documents, or integrating with SharePoint sites. Can also create new SharePoint lists.
50create-code-app
Creates Power Apps code apps using React and Vite. Use when building code apps, scaffolding projects, or deploying to Power Platform.
50activate-site
>-
46genpage
Creates, updates, and deploys Power Apps generative pages for model-driven apps using React v17, TypeScript, and Fluent UI V9. Completes workflow from requirements to deployment. Uses PAC CLI to deploy the page code. Use it when user asks to build, retrieve, or update a page in an existing Microsoft Power Apps model-driven app. Use it when user mentions "generative page", "page in a model-driven", or "genux".
45setup-datamodel
>-
45