New-WETUser
SYNOPSIS
Create a new user in the WET system.
SYNTAX
New-WETUser [-Id] <Int32> [-Lastname] <String> [-Firstname] <String> [-Email] <String> [-Phone] <String>
[-IsHoofdGebruiker] [[-Credential] <PSCredential>] [<CommonParameters>]
DESCRIPTION
This function creates a new user in the WET system by providing the user's ID, last name, first name, email, and phone number. Optionally, it allows specifying if the user is the primary user and provides support for authentication using credentials.
EXAMPLES
EXAMPLE 1
New-WETUser -Id 123 -Lastname "Doe" -Firstname "John" -Email "[email protected]" -Phone "123456789"
Creates a new user with the specified details in the WET system.
EXAMPLE 2
New-WETUser -Id 123 -Lastname "Doe" -Firstname "John" -Email "[email protected]" -Phone "123456789" -IsHoofdGebruiker
Creates a new user and sets them as the primary user.
EXAMPLE 3
New-WETUser -Id 123 -Lastname "Doe" -Firstname "John" -Email "[email protected]" -Phone "123456789" -Credential (Get-Credential)
Creates a new user with the specified details and authenticates using the provided credentials.
PARAMETERS
-Id
The ID of the supplier associated with the user.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Lastname
The last name of the user to be created.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Firstname
The first name of the user to be created.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The email address of the user to be created.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Phone
The phone number of the user to be created.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IsHoofdGebruiker
Indicates if the user is the primary user. Use this switch to set the user as the primary user.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Credential
The PSCredential object to use for authentication. If not provided, default credentials will be used.
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: 11
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.