Commit 16576f1
committed
Fix Graph scope in SP provisioning script (issue #414)
New-MgServicePrincipal requires Application.ReadWrite.All, not
AppRoleAssignment.ReadWrite.All. The script never calls any app-role-
assignment APIs, so requesting that scope was both insufficient (caused
403 Authorization_RequestDenied when creating V2 per-server SPs) and
unnecessary over-scope. Replace with the correct least-privilege scope
and update the matching 403 error hint so it no longer points users at
a permission that wouldn't fix their problem.1 parent b76c963 commit 16576f1
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
0 commit comments