Add-WssUserGroupMembership
Adds a user account to a user group.
Syntax
Add-WssUserGroupMembership
-GroupName <String>
-UserName <String>
[<CommonParameters>]
Description
The Add-WssUserGroupMembership cmdlet adds a user account to a user group.
Examples
Example 1: Add a user account to a user group
PS C:\> Add-WssUserGroupMembership -GroupName "Support" -UserName "PattiFuller"
This command adds the user account named PattiFuller to the user group named Support.
Parameters
-GroupName
Specifies the name of a user group. The cmdlet adds a user account to the group that you specify.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UserName
Specifies the name of a user account. The cmdlet adds the account that you specify to a user group.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for