[Feature Request] az role assignment list/delete
: Support --assignee-object-id
#30436
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
Feature Candidate
feature-request
RBAC
az role
Similar-Issue
Milestone
Related command
az role assignment list
az role assignment delete
Is your feature request related to a problem? Please describe.
#5273 added
--assignee-object-id
toaz role assignment create
to bypass the Microsoft Graph query, but--assignee-object-id
is not added toaz role assignment list
andaz role assignment delete
. These commands still require resolving--assignee
via Microsoft Graph.If the logged-in account does not have permission to query Microsoft Graph, CLI can still recover and treat the provided ID as object ID:
azure-cli/src/azure-cli/azure/cli/command_modules/role/custom.py
Lines 1569 to 1576 in f76cfd2
But, if CLI has no network connection to Microsoft Graph endpoint or fails to get an access token for Microsoft Graph (#30428), it has no way to recover.
Describe the solution you'd like
az role assignment list
andaz role assignment delete
should support--assignee-object-id
likeaz role assignment create
, in order to fully bypass Microsoft Graph query.Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: