Skip to content

Adds command 'entra group user add'.#5759

Closed
milanholemans wants to merge 1 commit intopnp:mainfrom
milanholemans:entra-group-user-add
Closed

Adds command 'entra group user add'.#5759
milanholemans wants to merge 1 commit intopnp:mainfrom
milanholemans:entra-group-user-add

Conversation

@milanholemans
Copy link
Copy Markdown
Contributor

@milanholemans milanholemans commented Jan 5, 2024

Closes #5471


  • Added a util function to get the user ID by UPN (array variant). This is something we can use at multiple other places as well.
  • Added validation util for array of UPNs

Copy link
Copy Markdown
Member

@waldekmastykarz waldekmastykarz left a comment

Choose a reason for hiding this comment

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

Very nice! Awesome use of batching! Let's do a few adjustments before we merge it

Comment thread src/utils/validation.ts Outdated
Comment thread src/utils/validation.ts Outdated
Comment thread src/utils/aadUser.ts Outdated
Comment thread src/m365/entra/commands/group/group-user-add.ts Outdated
Comment thread src/m365/entra/commands/group/group-user-add.ts Outdated
Comment thread src/m365/entra/commands/group/group-user-add.ts Outdated
Comment thread src/m365/entra/commands/group/group-user-add.ts Outdated
Comment thread src/m365/entra/commands/group/group-user-add.ts Outdated
Comment thread src/m365/entra/commands/group/group-user-add.ts Outdated
Comment thread src/m365/entra/commands/group/group-user-add.ts Outdated
@waldekmastykarz waldekmastykarz self-assigned this Jan 20, 2024
@waldekmastykarz waldekmastykarz marked this pull request as draft January 20, 2024 14:45
@milanholemans milanholemans marked this pull request as ready for review January 22, 2024 22:45

if (args.options.ids) {
const ids = args.options.ids.split(',').map(i => i.trim());
if (!validation.isValidGuidArray(ids)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's update this in a separate issue so that we don't need to iterate through the array twice

@waldekmastykarz
Copy link
Copy Markdown
Member

Merged manually. Thank you! 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New command: entra group user add

2 participants