< Back

Set-LinaUserGroup

Fri Jan 10, 2020 9:29 pm

NAME Set-LinaUserGroup



SYNOPSIS

Changes the configuration of a user group.





SYNTAX

Set-LinaUserGroup -LinaObjects <PSObject[]> [-NewName <String>] [-UserProfile <String>] [<CommonParameters>]





DESCRIPTION

Changes the configuration of a user group : Name, UserProfile





PARAMETERS

-LinaObjects <PSObject[]>



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-NewName <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-UserProfile <String>

Optional : New user profile to be assigned

Note : User profile has to be in the same tenant as the user group



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Array of LinaUserGroup Objects





OUTPUTS

The modified LinaUserGroup Objects





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-LinaUserGroup -Name "MyUserGroup" | Set-LinaUserGroup -NewName "MyUserGroupModified" -UserProfile

"Profil administrateur"



Changes the name and user profile of MyUserGroup









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-LinaUserGroup -Name "MyUserGroup* | Set-LinaUser -UserProfile "Profil administrateur"



Changes the user profile of all user groups MyUserGroup*











RELATED LINKS