Skip to content

Get-WETUser

SYNOPSIS

Retrieve user information from the WET API.

SYNTAX

General (Default)

Get-WETUser [[-Search] <String>] [[-Credential] <PSCredential>] [<CommonParameters>]

GebruikerId

Get-WETUser [-Id] <Int32> [[-Credential] <PSCredential>] [<CommonParameters>]

DESCRIPTION

This function retrieves user information from the WET API. It supports searching for users by name or retrieving a specific user by ID. Optionally, credentials can be provided for authentication.

EXAMPLES

EXAMPLE 1

Get-WETUser -Search "John Doe"

Retrieves user information for users matching the name "John Doe".

EXAMPLE 2

Get-WETUser -Id 123

Retrieves information for the user with ID 123.

EXAMPLE 3

Get-WETUser -Search "John Doe" -Credential (Get-Credential)

Retrieves user information for users matching the name "John Doe" using the specified credentials.

PARAMETERS

A string to search for users by name.

Type: String
Parameter Sets: General
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Id

The ID of the user to retrieve.

Type: Int32
Parameter Sets: GebruikerId
Aliases:

Required: True
Position: 1
Default value: 0
Accept pipeline input: True (ByPropertyName)
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.

INPUTS

OUTPUTS

NOTES