JustinGrote / JustinGrote/JAz.PIM
Enable role fails with permission error
- Dominant language
- PowerShell
- Stars
- 48
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
With version 0.0.8 of the module, i am trying to activate a role using this syntax:
Enable-JAzRole -RoleName 'Contributor -> Scope (Guid)'
But that fails with the following error message:
_Enable-JAzRole: The requestor "id" does not have permissions for this request. Please use $filter=asTarget() to filter on the requestor's assignments._
Have tried using -Verbose flag, but that did not bring any additional info.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing Enable-JAzRole -RoleName with the reported Contributor scope and inspect its verbose request construction. Compare the request with the service error's required $filter=asTarget() behavior; done means an authorized role activation succeeds without the permission error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- authorization, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100