pnp / pnp/script-samples

Automate Graph Permission Assignment for App Registrations

Open
#987 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
347
Forks
191
Avg merge
5d 16h
Merged PRs (30d)
10

Description

I found a way to add requested Microsoft Graph permissions to an app registration’s requiredResourceAccess collection. The process resolves permission names against the Microsoft Graph service principal and updates the app registration using Microsoft Graph.

Currently, approving permissions every time I log in to the Entra portal is a pain. This approach helps streamline the process by automating permission assignment, reducing repetitive manual consent, and improving efficiency in managing app registrations.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the repository’s PowerShell samples and the Microsoft Graph flow described in the issue. Confirm how requested permission names resolve against the Microsoft Graph service principal and how app registrations update requiredResourceAccess. Done means a sample automates this assignment and reduces repeated portal approval.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
api, authorization, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.