-
Notifications
You must be signed in to change notification settings - Fork 10
New GAUser
create user.
New-GAUser [-UserName] <String> [-GivenName] <String> [-FamilyName] <String> [[-PasswordLength] <Int32>]
[-ShowNewPassword] [[-IncludeInDirectory] <Boolean>] [[-Suspended] <Boolean>] [[-IpWhiteListed] <Boolean>]
[[-ChangePasswordAtNextLogin] <Boolean>] [[-OrgUnitPath] <String>]
[-StandardQueryParams <StandardQueryParameters>] [-GAuthId <String>] [-WhatIf] [-Confirm]
New-GAUser [-UserName] <String> [-GivenName] <String> [-FamilyName] <String> [[-Password] <String>]
[[-IncludeInDirectory] <Boolean>] [[-Suspended] <Boolean>] [[-IpWhiteListed] <Boolean>]
[[-ChangePasswordAtNextLogin] <Boolean>] [[-OrgUnitPath] <String>]
[-StandardQueryParams <StandardQueryParameters>] [-GAuthId <String>] [-WhatIf] [-Confirm]
New-GAUser [-UserName] <String> [-GivenName] <String> [-FamilyName] <String>
[[-SecureStringPassword] <SecureString>] [[-IncludeInDirectory] <Boolean>] [[-Suspended] <Boolean>]
[[-IpWhiteListed] <Boolean>] [[-ChangePasswordAtNextLogin] <Boolean>] [[-OrgUnitPath] <String>]
[-StandardQueryParams <StandardQueryParameters>] [-GAuthId <String>] [-WhatIf] [-Confirm]
New-GAUser [-UserName] <String> [[-UserBody] <User>] [-StandardQueryParams <StandardQueryParameters>]
[-GAuthId <String>] [-WhatIf] [-Confirm]
create user.
PS C:\> New-GAUser -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: False
First Name
Type: String
Parameter Sets: PasswordGenerated, PasswordProvided, SecureString
Aliases:
Required: True
Position: 2
Default value:
Accept pipeline input: False
Accept wildcard characters: False
Last Name
Type: String
Parameter Sets: PasswordGenerated, PasswordProvided, SecureString
Aliases:
Required: True
Position: 3
Default value:
Accept pipeline input: False
Accept wildcard characters: False
User's password
Type: String
Parameter Sets: PasswordProvided
Aliases:
Required: False
Position: 4
Default value:
Accept pipeline input: False
Accept wildcard characters: False
A secure string password.
Type: SecureString
Parameter Sets: SecureString
Aliases:
Required: False
Position: 6
Default value:
Accept pipeline input: False
Accept wildcard characters: False
The desired length of the generated password
Type: Int32
Parameter Sets: PasswordGenerated
Aliases:
Required: False
Position: 5
Default value:
Accept pipeline input: False
Accept wildcard characters: False
Indicates if the generated password should be shown
Type: SwitchParameter
Parameter Sets: PasswordGenerated
Aliases:
Required: False
Position: 6
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Boolean indicating if user is included in Global Address List
Type: Boolean
Parameter Sets: PasswordGenerated, PasswordProvided, SecureString
Aliases:
Required: False
Position: 7
Default value:
Accept pipeline input: False
Accept wildcard characters: False
Indicates if user is suspended
Type: Boolean
Parameter Sets: PasswordGenerated, PasswordProvided, SecureString
Aliases:
Required: False
Position: 8
Default value:
Accept pipeline input: False
Accept wildcard characters: False
Boolean indicating if ip is whitelisted
Type: Boolean
Parameter Sets: PasswordGenerated, PasswordProvided, SecureString
Aliases:
Required: False
Position: 9
Default value:
Accept pipeline input: False
Accept wildcard characters: False
Boolean indicating if the user should change password in next login
Type: Boolean
Parameter Sets: PasswordGenerated, PasswordProvided, SecureString
Aliases:
Required: False
Position: 10
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
OrgUnit of User
Type: String
Parameter Sets: PasswordGenerated, PasswordProvided, SecureString
Aliases:
Required: False
Position: 11
Default value:
Accept pipeline input: False
Accept wildcard characters: False
JSON template for User object in Directory API.
Type: User
Parameter Sets: Body
Aliases:
Required: False
Position: 0
Default value:
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
A Standard Query Parameters Object.
Type: StandardQueryParameters
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: False
The 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: False
User's name
Boolean indicating if the user should change password in next login
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