microsoft / microsoft/PowerApps-Samples
'Missing property: clientId' in the ManagePermissionGrant.ps1 PS script
Nobody has claimed this yet.
- 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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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