I have a user with owner permission on subscription and I am trying to use
https://graph.microsoft.com/beta/privilegedAccess/azureResources/resources
the result is always null for a subscription. I have the privileged access permission for the user I am working with.
Result
@odata.context value
-------------- -----
https://graph.microsoft.com/beta/$metadata#governanceResources {}
Update: When I try to assign owner on a RG am able to fetch result
If you assign the role for the user in
Privileged Identity Managementin the portal, make sure theStatusof the assignment isActive, if it isEligible, please update it toActive, otherwise theOwnerrole will not take effect, it will return null.You could check it in the
Privileged Identity Management->Azure resources-> select your subscription ->Assignments-> search for your user account.Another way, you could navigate to the subscription in the portal directly ->
Access control (IAM)->Add->Add role assignment-> search for your user account and add it asOwner, it will also work. See this link.