microsoft / microsoft/PowerApps-Samples

'Missing property: clientId' in the ManagePermissionGrant.ps1 PS script

Open
#711 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

PowerShell
Dominant language
C#
Stars
2k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

When i run the script, you can see it outputs the $grantParams object and the clientId is in there.
Any idea why it would then throw a 'Missing property: clientId' error on the New-MgOauth2PermissionGrant command?
I have global admin rights on this tenant.

thanks

Image

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 with ManagePermissionGrant.ps1 and reproduce the failure at the New-MgOauth2PermissionGrant command. Inspect how the displayed $grantParams object is constructed and passed, then compare that with the command's reported clientId requirement; done means the script runs without the missing-property error.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
authorization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.