You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: List all role assignments with "Reader" role at the subscription scope.
801
+
- name: List role assignments at the subscription scope.
802
+
text: az role assignment list --scope /subscriptions/00000000-0000-0000-0000-000000000000
803
+
- name: List role assignments at the subscription scope, without filling roleDefinitionName property.
804
+
text: az role assignment list --scope /subscriptions/00000000-0000-0000-0000-000000000000 --fill-role-definition-name false
805
+
- name: List role assignments with "Reader" role at the subscription scope.
800
806
text: az role assignment list --role Reader --scope /subscriptions/00000000-0000-0000-0000-000000000000
801
-
- name: List all role assignments of an assignee at the subscription scope.
807
+
- name: List role assignments of an assignee at the subscription scope.
802
808
text: az role assignment list --assignee 00000000-0000-0000-0000-000000000000 --scope /subscriptions/00000000-0000-0000-0000-000000000000
803
-
- name: List all role assignments with "Reader" role at the subscription scope, without filling principalName property
804
-
text: az role assignment list --role Reader --scope /subscriptions/00000000-0000-0000-0000-000000000000 --fill-principal-name false
809
+
- name: List role assignments of an assignee (with its object ID) at the subscription scope, without filling principalName property. This command does not query Microsoft Graph.
810
+
text: az role assignment list --assignee-object-id 00000000-0000-0000-0000-000000000000 --scope /subscriptions/00000000-0000-0000-0000-000000000000 --fill-principal-name false
c.argument('include_inherited', action='store_true', help='include assignments applied on parent scopes')
328
328
c.argument('can_delegate', action='store_true', help='when set, the assignee will be able to create further role assignments to the same role')
329
329
c.argument('assignee', help='represent a user, group, or service principal. supported format: object id, user sign-in name, or service principal name')
330
-
c.argument('assignee_object_id', help="Use this parameter instead of '--assignee' to bypass Graph API invocation in case of insufficient privileges. "
331
-
"This parameter only works with object ids for users, groups, service principals, and "
332
-
"managed identities. For managed identities use the principal id. For service principals, "
333
-
"use the object id and not the app id.")
330
+
c.argument('assignee_object_id',
331
+
help="The assignee's object ID (also known as principal ID). "
332
+
"Use this argument instead of '--assignee' to bypass Microsoft Graph query in case "
333
+
"the logged-in account has no permission or the machine has no network access to query "
334
+
"Microsoft Graph.")
334
335
c.argument('ids', nargs='+', help='space-separated role assignment ids')
0 commit comments