Skip to content

Enhancement: Ability to add sub groups using entra group member add. Closes #6480 #6822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MartinM85
Copy link
Contributor

Closes #6480

@milanholemans
Copy link
Contributor

Thanks, we'll try to review it ASAP!

@milanholemans milanholemans added the pr-priority Process this PR asap label Aug 3, 2025
@milanholemans
Copy link
Contributor

Marking this PR with higher priority since it's blocking #6481, which has to be merged in the next major release.

@milanholemans milanholemans self-assigned this Aug 6, 2025
Copy link
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @MartinM85, looks good and works great. Let's do a few changes before we merge it.

@milanholemans milanholemans requested a review from Copilot August 6, 2025 21:55
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the Entra Group member commands by adding support for sub-groups as members and improving the API with new parameter options. The main changes include deprecating the generic ids parameter in favor of more specific parameter names and implementing functionality to add sub-groups to groups using either IDs or display names.

  • Adds new utility function getGroupIdsByDisplayNames for batch group name resolution
  • Introduces userIds, subgroupIds, and subgroupNames parameters to replace/supplement existing options
  • Deprecates the generic ids parameter in favor of more descriptive alternatives

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/utils/entraGroup.ts Adds new utility function for batch group ID resolution by display names
src/utils/entraGroup.spec.ts Comprehensive test coverage for the new group ID resolution functionality
src/m365/entra/commands/group/group-member-set.ts Updates command to support new userIds parameter and deprecate ids
src/m365/entra/commands/group/group-member-set.spec.ts Test coverage for new parameter validation and deprecation warnings
src/m365/entra/commands/group/group-member-add.ts Major enhancement to support sub-group additions with new parameters
src/m365/entra/commands/group/group-member-add.spec.ts Extensive test coverage for all new sub-group functionality
docs/docs/cmd/entra/group/group-member-set.mdx Documentation updates for new parameters and deprecation notices
docs/docs/cmd/entra/group/group-member-add.mdx Documentation for sub-group functionality and parameter changes

@milanholemans milanholemans marked this pull request as draft August 6, 2025 21:57
@MartinM85 MartinM85 marked this pull request as ready for review August 7, 2025 07:30
@MartinM85 MartinM85 requested a review from milanholemans August 7, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-priority Process this PR asap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: Ability to add sub groups using entra group member add
2 participants