Skip to content

"entra group user" renaming and enchancement #6088

@dojcsakj

Description

@dojcsakj

entra group user list does not show nested security groups. It shows only member users but does not show member groups.

It would be useful to be able to get groups or to get users+groups.

Filtering happens because of the microsoft.graph.user part in group-user-list.ts:184:

const endpoint: string = `${this.resource}/v1.0/groups/${groupId}/${role}/microsoft.graph.user?$select=${selectParam}${expandParam}`;

To get groups microsoft.graph.group can be used:

const endpoint: string = `${this.resource}/v1.0/groups/${groupId}/${role}/microsoft.graph.group?$select=${selectParam}${expandParam}`;

To get user + groups no microsoft.graph.* is needed:

const endpoint: string = `${this.resource}/v1.0/groups/${groupId}/${role}?$select=${selectParam}${expandParam}`;

Todo:

  • entra group user ... commands should be marked as deprecated
  • move all this logic to ęntra group member ...
  • add subgroup support to all ęntra group member ... commands (e.g. add, remove, list, ...)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions