Data ONTAP® PowerShell Toolkit

Cmdlet: Set-NaUser


NAME
Set-NaUser

SYNOPSIS
Modifies a user given the information provided.

SYNTAX
Set-NaUser [-User] <String> [-FullName <String>] [-Comment <String>] [-AddGr
oups <String[]>] [-RemoveGroups <String[]>] [-Controller <NaController>] [-W
arningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParamet
ers>]


DESCRIPTION
Modifies a user given the information provided.


PARAMETERS
-User <String>
User to modify.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-FullName <String>
Optional full name of user.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Comment <String>
Optional comment for user.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-AddGroups <String[]>
List of groups to which to add this user.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-RemoveGroups <String[]>
List of groups from which to remove this user.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Controller <NaController>
The DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningAction <ActionPreference>


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable <String>


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 and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
NetApp.Ontapi.Filer.Useradmin.UseradminUserInfo


NOTES


Category: useradmin
API: useradmin-user-modify

-------------- Example 1 --------------

C:\PS>Set-NaUser SnapDriveUser -AddGroups VirtAdmins -RemoveGroups Administr
ators


Remove user 'SnapDriveUser' from the 'Administrators' group and add to the '
VirtAdmins' group.


AllowedCapabilities : {cli-cifs*, cli-exportfs*, cli-nfs*, cli-usera
dmi
n*...}
Comment :
FullName :
Name : SnapDriveUser
PasswordMaximumAge : 4294967295
PasswordMinimumAge : 0
Rid : 131072
Status : enabled
UseradminGroups : {VirtAdmins}
PasswordMaximumAgeSpecified : True
PasswordMinimumAgeSpecified : True



RELATED LINKS
Get-NaUser
New-NaUser
Remove-NaUser







 Data ONTAP® PowerShell Toolkit