-
Notifications
You must be signed in to change notification settings - Fork 10
Set GAUser
update user. This method supports patch semantics.
Set-GAUser [-UserKey] <String> [[-NewGivenName] <String>] [[-NewFamilyName] <String>] [[-NewUserName] <String>]
[[-Suspended] <Boolean>] [[-NewPassword] <String>] [[-ChangePasswordAtNextLogin] <Boolean>]
[[-OrgUnitPath] <String>] [-StandardQueryParams <StandardQueryParameters>] [-GAuthId <String>] [-WhatIf]
[-Confirm]
Set-GAUser [-UserKey] <String> [[-UserBody] <User>] [-StandardQueryParams <StandardQueryParameters>]
[-GAuthId <String>] [-WhatIf] [-Confirm]
Set-GAUser [-UserKey] <String> [[-NewGivenName] <String>] [[-NewFamilyName] <String>] [[-NewUserName] <String>]
[[-Suspended] <Boolean>] [[-SecureStringPassword] <SecureString>] [[-ChangePasswordAtNextLogin] <Boolean>]
[[-OrgUnitPath] <String>] [-StandardQueryParams <StandardQueryParameters>] [-GAuthId <String>] [-WhatIf]
[-Confirm]
Set-GAUser [-UserKey] <String> [[-NewGivenName] <String>] [[-NewFamilyName] <String>] [[-NewUserName] <String>]
[[-Suspended] <Boolean>] [[-PasswordLength] <Int32>] [-ShowNewPassword]
[[-ChangePasswordAtNextLogin] <Boolean>] [[-OrgUnitPath] <String>]
[-StandardQueryParams <StandardQueryParameters>] [-GAuthId <String>] [-WhatIf] [-Confirm]
update user. This method supports patch semantics.
PS C:\> Set-GAUser -UserKey $SomeUserKeyString -UserBody $SomeUserObj
This automatically generated example serves to show the bare minimum required to call this Cmdlet.
Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.
User's name
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value:
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: FalseJSON template for User object in Directory API.
Type: User
Parameter Sets: Body
Aliases:
Required: False
Position: 1
Default value:
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: FalseFirst Name
Type: String
Parameter Sets: PasswordProvided, SecureString, PasswordGenerated
Aliases:
Required: False
Position: 2
Default value:
Accept pipeline input: False
Accept wildcard characters: FalseLast Name
Type: String
Parameter Sets: PasswordProvided, SecureString, PasswordGenerated
Aliases:
Required: False
Position: 3
Default value:
Accept pipeline input: False
Accept wildcard characters: FalseUpdated user's name
Type: String
Parameter Sets: PasswordProvided, SecureString, PasswordGenerated
Aliases:
Required: False
Position: 4
Default value:
Accept pipeline input: False
Accept wildcard characters: FalseIndicates if user is suspended
Type: Boolean
Parameter Sets: PasswordProvided, SecureString, PasswordGenerated
Aliases:
Required: False
Position: 5
Default value:
Accept pipeline input: False
Accept wildcard characters: FalseUser's password
Type: String
Parameter Sets: PasswordProvided
Aliases:
Required: False
Position: 6
Default value:
Accept pipeline input: False
Accept wildcard characters: FalseA secure string password.
Type: SecureString
Parameter Sets: SecureString
Aliases:
Required: False
Position: 6
Default value:
Accept pipeline input: False
Accept wildcard characters: FalseIndicates the length of the password desired if it is to be automatically generated.
Type: Int32
Parameter Sets: PasswordGenerated
Aliases:
Required: False
Position: 7
Default value:
Accept pipeline input: False
Accept wildcard characters: FalseIndicates if the generated password should be shown
Type: SwitchParameter
Parameter Sets: PasswordGenerated
Aliases:
Required: False
Position: 8
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseBoolean indicating if the user should change password in next login
Type: Boolean
Parameter Sets: PasswordProvided, SecureString, PasswordGenerated
Aliases:
Required: False
Position: 9
Default value:
Accept pipeline input: False
Accept wildcard characters: FalseOrgUnit of User
Type: String
Parameter Sets: PasswordProvided, SecureString, PasswordGenerated
Aliases:
Required: False
Position: 10
Default value:
Accept pipeline input: False
Accept wildcard characters: FalseA Standard Query Parameters Object.
Type: StandardQueryParameters
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: FalseThe GAuthId representing the gShell auth credentials this cmdlet should use to run.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: FalseUser's name
JSON template for User object in Directory API.
Part of the gShell Project, relating to the Google Directory API; see Related Links or use the -Online parameter.
News - Get Started - Cmdlet Index - FAQ - Discussion - Downloads