Rename-LKGroup

Renames an existing Entra ID group.

Syntax

# By name
Rename-LKGroup -Name <String> -NewName <String> [-WhatIf] [-Confirm] [<CommonParameters>]

# By ID
Rename-LKGroup -GroupId <String> -NewName <String> [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters

-Name

Attribute Value
Type String
Required Yes (ByName)

-GroupId

Attribute Value
Type String
Required Yes (ById)

-NewName

Attribute Value
Type String
Required Yes

-WhatIf

Shows what would happen without performing the action.

Attribute Value
Type SwitchParameter

-Confirm

Prompts for confirmation before performing the action.

Attribute Value
Type SwitchParameter

Outputs

Property Type Description
GroupId String Group GUID
OldName String Previous name
NewName String Updated name
Action String Renamed

Examples

Rename-LKGroup -Name 'SG-Old-Name' -NewName 'SG-New-Name'