-
Notifications
You must be signed in to change notification settings - Fork 10
New GAUserObj
Creates a new Directory API User object.
New-GAUserObj [[-Addresses] <Object>] [[-AgreedToTerms] <Boolean>] [[-Aliases] <String[]>]
[[-ChangePasswordAtNextLogin] <Boolean>] [[-CreationTime] <DateTime>]
[[-CustomSchemas] <System.Collections.Generic.IDictionary`2[System.String,System.Collections.Generic.IDictionary`2[System.String,System.Object]]>]
[[-CustomerId] <String>] [[-DeletionTime] <DateTime>] [[-Emails] <Object>] [[-ExternalIds] <Object>]
[[-HashFunction] <String>] [[-Id] <String>] [[-Ims] <Object>] [[-IncludeInGlobalAddressList] <Boolean>]
[[-IpWhitelisted] <Boolean>] [[-IsAdmin] <Boolean>] [[-IsDelegatedAdmin] <Boolean>]
[[-IsMailboxSetup] <Boolean>] [[-LastLoginTime] <DateTime>] [[-Name] <UserName>]
[[-NonEditableAliases] <String[]>] [[-Notes] <Object>] [[-OrgUnitPath] <String>] [[-Organizations] <Object>]
[[-Password] <String>] [[-Phones] <Object>] [[-PrimaryEmail] <String>] [[-Relations] <Object>]
[[-Suspended] <Boolean>] [[-SuspensionReason] <String>] [[-ThumbnailPhotoEtag] <String>]
[[-ThumbnailPhotoUrl] <String>] [[-Websites] <Object>] [-WhatIf] [-Confirm]
This provides a Cmdlet-Based approach to creating a User object which may be required as a parameter for some other Cmdlets in the Directory API category.
You could alternately create this object by calling New-Object -TypeName Google.Apis.admin.Directory.directory_v1.Data.User
PS C:\> New-GAUserObj
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.
An Addresses Object
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseIndicates if user has agreed to terms (Read-only)
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseList of aliases (Read-only)
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseBoolean indicating if the user should change password in next login
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseUser's Google account creation time. (Read-only)
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseCustom fields of the user.
Type: System.Collections.Generic.IDictionary`2[System.String,System.Collections.Generic.IDictionary`2[System.String,System.Object]]
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseCustomerId of User (Read-only)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseA DeletionTime object
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseAn Emails object
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 8
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseAn ExternalIds object
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 9
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseHash function name for password. Supported are MD5, SHA-1 and crypt
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 10
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseUnique identifier of User (Read-only)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 11
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseAn Ims object
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 12
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseBoolean indicating if user is included in Global Address List
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 13
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseBoolean indicating if ip is whitelisted
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 14
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseBoolean indicating if the user is admin (Read-only)
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 15
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseBoolean indicating if the user is delegated admin (Read-only)
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 16
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseIs mailbox setup (Read-only)
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 17
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseUser's last login time. (Read-only)
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: 18
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseUser's name
Type: UserName
Parameter Sets: (All)
Aliases:
Required: False
Position: 19
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseList of non editable aliases (Read-only)
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 20
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseA Notes object
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 21
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseOrgUnit of User
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 22
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseAn Organizations object
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 23
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseUser's password
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 24
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseA Phones object
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 25
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: Falseusername of User
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 26
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseA Relations object
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 27
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseIndicates if user is suspended
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 28
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseSuspension reason if user is suspended (Read-only)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 29
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseETag of the user's photo (Read-only)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 30
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalsePhoto Url of the user (Read-only)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 31
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseA Websites object
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 32
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseIndicates if user has agreed to terms (Read-only)
List of aliases (Read-only)
Boolean indicating if the user should change password in next login
User's Google account creation time. (Read-only)
System.Collections.Generic.IDictionary2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Collections.Generic.IDictionary2System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
Custom fields of the user.
CustomerId of User (Read-only)
Hash function name for password. Supported are MD5, SHA-1 and crypt
Unique identifier of User (Read-only)
Boolean indicating if user is included in Global Address List
Boolean indicating if ip is whitelisted
Boolean indicating if the user is admin (Read-only)
Boolean indicating if the user is delegated admin (Read-only)
Is mailbox setup (Read-only)
User's last login time. (Read-only)
User's name
List of non editable aliases (Read-only)
OrgUnit of User
User's password
username of User
Indicates if user is suspended
Suspension reason if user is suspended (Read-only)
ETag of the user's photo (Read-only)
Photo Url of the user (Read-only)
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