Get-MyITProcessUsers

SYNOPSIS

List of users

SYNTAX

Get-MyITProcessUsers [[-filter_field] <String>] [[-filter_predicate] <String>] [[-filter_condition] <String>]
 [[-filter_operator] <String>] [[-sort_field] <String>] [[-sort_direction] <String>] [[-page] <Int64>]
 [[-pageSize] <Int64>] [-allPages] [<CommonParameters>]

DESCRIPTION

The Get-MyITProcessUsers cmdlet gets a List of users

EXAMPLES

EXAMPLE 1

Get-MyITProcessUsers

Returns the first 100 users

EXAMPLE 2

Get-MyITProcessUsers -filter_field firstName -filter_predicate equal -filter_condition 'Celerium'

Returns the users whose firstName equals the defined condition

EXAMPLE 3

Get-MyITProcessUsers -sort_field firstName -sort_direction desc

Returns the first 100 users sorted by firstName in descending order

EXAMPLE 4

Get-MyITProcessUsers -page 2 -pageSize 50

Returns results 50 at a time and outputs data from page 2

PARAMETERS

-filter_field

Filter by a specific field name

Allowed values: ‘id’, ‘firstName’, ‘lastName’, ‘roleName’, ‘lastLoginDate’

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-filter_predicate

Filter by a specific field predicate operator

Allowed values: ‘equal’, ‘notEqual’, ‘greaterThan’, ‘lessThan’, ‘contains’

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-filter_condition

Filter by a value in the specified field.

This value cannot be empty

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-filter_operator

Also filter for other values

Allowed values: ‘and’, ‘or’, $null

This parameter is just a placeholder for now as I am unsure how to add this functionality if multiple queries are needed

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-sort_field

Sort by a specific field name

Allowed values: ‘id’, ‘firstName’, ‘lastName’, ‘roleName’, ‘lastLoginDate’

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-sort_direction

Sort the specific field name in a certain direction

Allowed values: ‘asc’, ‘desc’

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-page

Defines the page number to return

[Default] 1

Type: Int64
Parameter Sets: (All)
Aliases:

Required: False
Position: 7
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-pageSize

Defines the number of items to return with each page

[Default] 100 [Maximum] 100

Type: Int64
Parameter Sets: (All)
Aliases:

Required: False
Position: 8
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-allPages

Returns all items from an endpoint

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
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

N\A

https://celerium.github.io/MyITProcess-PowerShellWrapper/site/users/Get-MyITProcessUsers.html