From 98d50b7d4a3e0819a10f0eff7ca528c16b9fa318 Mon Sep 17 00:00:00 2001 From: Martin Machacek Date: Wed, 6 Nov 2024 08:21:06 +0100 Subject: [PATCH] All entra m365group commands should accept displayName option --- docs/docs/cmd/entra/m365group/m365group-remove.mdx | 2 +- src/m365/entra/commands/m365group/m365group-teamify.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/cmd/entra/m365group/m365group-remove.mdx b/docs/docs/cmd/entra/m365group/m365group-remove.mdx index e05eb90eee9..0ebd7c05596 100644 --- a/docs/docs/cmd/entra/m365group/m365group-remove.mdx +++ b/docs/docs/cmd/entra/m365group/m365group-remove.mdx @@ -53,7 +53,7 @@ m365 entra m365group remove --id 28beab62-7540-4db1-a23f-29a6018a3848 Remove group with displayName _Finance_ without prompting for confirmation ```sh -m365 entra m365group remove --displayName 28beab62-7540-4db1-a23f-29a6018a3848 --force +m365 entra m365group remove --displayName Finance --force ``` Remove group with id _28beab62-7540-4db1-a23f-29a6018a3848_ without prompting for confirmation and without moving it to the Recycle Bin diff --git a/src/m365/entra/commands/m365group/m365group-teamify.ts b/src/m365/entra/commands/m365group/m365group-teamify.ts index 0f71895ae41..39831cc5db3 100644 --- a/src/m365/entra/commands/m365group/m365group-teamify.ts +++ b/src/m365/entra/commands/m365group/m365group-teamify.ts @@ -73,7 +73,7 @@ class EntraM365GroupTeamifyCommand extends GraphCommand { } #initOptionSets(): void { - this.optionSets.push({ options: ['id', 'dispalyName', 'mailNickname'] }); + this.optionSets.push({ options: ['id', 'displayName', 'mailNickname'] }); } #initTypes(): void {