Module Name | title | schema | applicable | external help file | online version |
---|---|---|---|---|---|
PnP.PowerShell |
New-PnPGroup |
2.0.0 |
SharePoint Online |
PnP.PowerShell.dll-Help.xml |
Adds group to the Site Groups List and returns a group object
New-PnPGroup -Title <String> [-Description <String>] [-Owner <String>] [-AllowRequestToJoinLeave]
[-AutoAcceptRequestToJoinLeave] [-AllowMembersEditMembership] [-DisallowMembersViewMembership]
[-RequestToJoinEmail <String>] [-SetAssociatedGroup <AssociatedGroupType>]
[-Connection <PnPConnection>]
This command creates a SharePoint group in the current Site Collection connected to.
New-PnPGroup -Title "My Site Users"
A switch parameter that specifies whether group members can modify membership in the group
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A switch parameter that specifies whether to allow users to request membership in the group and to allow users to request to leave the group
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A switch parameter that specifies whether users are automatically added or removed when they make a request
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: PnPConnection
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The description for the group
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A switch parameter that disallows group members to view membership.
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The owner for the group, which can be a user or another group
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The e-mail address to which membership requests are sent
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill SetAssociatedGroup Description }}
Type: AssociatedGroupType
Parameter Sets: (All)
Accepted values: None, Visitors, Members, Owners
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The Title of the group
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False