Azure / azure-cli

Azure Command-Line Interface
MIT License
4.04k stars 3.01k forks source link

'az role assignment list' should support '--assignee-object-id' #15994

Open karataliu opened 4 years ago

karataliu commented 4 years ago

Is your feature request related to a problem? Please describe. az role assignment create has a parameter '--assignee-object-id', but 'az role assignment list' doesn't have.

using '--assignee' would require access to graph api, this is unexpected when we already known the object id but doesn't have access to graph.

Describe the solution you'd like Add '--assignee-object-id' parameter to 'az role assignment list' same as ''az role assignment create'

Describe alternatives you've considered

Additional context cli 2.13

yonzhan commented 4 years ago

role

karataliu commented 2 years ago

is there any update? This could help on https://github.com/Azure/azure-cli/issues/13368 , as client can pre-check before running role assignment.

Frankkkkk commented 1 year ago

Related to #27526 #21020

jiasli commented 1 year ago

@karataliu, I don't think #13368 is relevant to this issue. Please see my comment https://github.com/Azure/azure-cli/issues/13368#issuecomment-1805197256.

jiasli commented 1 year ago

@Frankkkkk, #27526 is not related to this one.

jiasli commented 6 days ago

az role assignment delete should also support --assignee-object-id. Using https://github.com/Azure/azure-cli/issues/30436 to track both.