Skip to content

Rename entra group user ... commands to entra group member ... #6396

@milanholemans

Description

@milanholemans

Context: #6088

TL;DR:
Currently, we have a bunch of entra group user commands. These commands work with all kinds of groups, like security groups. Security groups can be nested (you can put a security group into a security group). Currently, our commands don't support this. For example, if you run entra group user list, the command only returns users, no nested groups, or whatever.
To better reflect what the command does, we should rename all entra group user ... commands to entra group member ....


To do:

  • Rename all entra group user ... commands to entra group member ....
  • Ensure that entra group member list can also output nested groups. This can be done by removing the user filter in the API request. (check code sample below)
    • Check if other entra group member commands need similar changes (probably not)

const expandParam = fieldExpand.length > 0 ? `&$expand=${fieldExpand}` : '';
const selectParam = allSelectProperties.filter(item => !item.includes('/'));
const endpoint: string = `${this.resource}/v1.0/groups/${groupId}/${role}/microsoft.graph.user?$select=${selectParam}${expandParam}`;

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions