Skip to content

Add AppRoleMove.ps1 sample: migrate Default Access to an explicit app role#3651

Open
msewaweru wants to merge 1 commit into
microsoftgraph:mainfrom
msewaweru:samples-add-approlemove
Open

Add AppRoleMove.ps1 sample: migrate Default Access to an explicit app role#3651
msewaweru wants to merge 1 commit into
microsoftgraph:mainfrom
msewaweru:samples-add-approlemove

Conversation

@msewaweru

Copy link
Copy Markdown
Contributor

Changes proposed in this pull request

  • Adds samples/Scripts/AppRoleMove.ps1, a Microsoft Graph PowerShell SDK sample that migrates users and groups assigned the implicit Default Access role on an enterprise application (service principal) to an explicit User app role, in a safe and auditable way.
  • Includes a -DryRun preview mode and an Option 2 report-only mode, and generates CSV/JSON before/after reports.
  • Authored by Jeevan Desarda (@jeevansd); credited in the script's comment-based help header and via a Co-authored-by trailer.

Why

Provides a Microsoft-owned home for the script so Microsoft Entra customers are not directed to run a tenant-modifying script from a personal GitHub repository. This unblocks publication of the Zscaler zidentity provisioning tutorial.

Other links

…t app role

Adds a Microsoft Graph PowerShell SDK sample that migrates users and groups
assigned the implicit "Default Access" role on an enterprise application to an
explicit "User" app role, with dry-run and report-only modes.

Authored by Jeevan Desarda. Provides a Microsoft-owned home for the script so
customers are not directed to run a tenant-modifying script from a personal
GitHub repository (relates to ADO work item 588327).

Co-authored-by: Jeevan Desarda <15001780+jeevansd@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@msewaweru msewaweru requested a review from a team as a code owner June 24, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants