JustinGrote / JAz.PIM

MIT License
30 stars 2 forks source link

Enable-JAzRole: The requestor xxxxxxxxxxxxxxxxxxxxxx does not have permissions for this request. Please use $filter=asTarget() to filter on the requestor's assignments. #14

Closed chaoscreater closed 1 year ago

chaoscreater commented 1 year ago

Hi there,

First of all, thanks for making this! It's real handy. It works fine for AAD roles, but I'm having trouble getting this to work for Azure resources roles.

I have 2 roles on Azure resources, one is Owner on the TenantRoot management group and the other one is a Storage Blob Data Reader on a specific resource. Neither of which are able to be activated. Here's the error I'm getting:

Enable-JAzRole: The requestor xxxxxxxxxxxxxxxxxxxxxxxxxxxx does not have permissions for this request. Please use $filter=asTarget() to filter on the requestor's assignments.

I'm not sure what permissions I'm missing here.

chaoscreater commented 1 year ago

Closing due to duplicate issue and I've found my solution.

https://github.com/JustinGrote/JAz.PIM/issues/10#issuecomment-1752005317