Skip to content
This repository was archived by the owner on Jan 29, 2022. It is now read-only.

Latest commit

 

History

History
189 lines (140 loc) · 3.77 KB

Get-CrmUser.md

File metadata and controls

189 lines (140 loc) · 3.77 KB
external help file Module Name online version schema
AMSoftware.Crm.PowerShell.Commands.dll-Help.xml
AMSoftware.Crm
2.0.0

Get-CrmUser

SYNOPSIS

Get user from the connected organization.

SYNTAX

GetAllUsers (Default)

Get-CrmUser [[-Name] <String>] [-Exclude <String>] [-BusinessUnit <Guid>] [-IncludeDisabled]
 [-IncludeTotalCount] [-Skip <UInt64>] [-First <UInt64>] [<CommonParameters>]

GetUserById

Get-CrmUser [-Id] <Guid[]> [-IncludeTotalCount] [-Skip <UInt64>] [-First <UInt64>] [<CommonParameters>]

DESCRIPTION

Get user from the connected organization.

EXAMPLES

Example 1

PS C:\> Get-CrmUser -UserName 'user1@organization.com'

Gets the user matching username 'user1@organization.com'.

PARAMETERS

-BusinessUnit

The id of a business unit to retrieve the related users for.

Type: System.Guid
Parameter Sets: GetAllUsers
Aliases:

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

-Exclude

Exclude users whose name matches the provided pattern.

Type: System.String
Parameter Sets: GetAllUsers
Aliases:

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

-Id

The id of the user to retrieve.

Type: System.Guid[]
Parameter Sets: GetUserById
Aliases:

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

-IncludeDisabled

Include inactive users in the result.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: GetAllUsers
Aliases:

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

-Name

Include users whose name matches the provided pattern.

Type: System.String
Parameter Sets: GetAllUsers
Aliases: Include

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

-IncludeTotalCount

Return the total count (and accuracy) of the number of records before returning the result.

Because of the limitations of Dynamics CRM, the total count is only returned accurate when the result is limited to 5000 items

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Skip

Skips (does not return) the specified number of records.

Type: System.UInt64
Parameter Sets: (All)
Aliases:

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

-First

Specifies the number of records to retrieve from the beginning.

Type: System.UInt64
Parameter Sets: (All)
Aliases:

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

System.Guid[]

OUTPUTS

Microsoft.Xrm.Sdk.Entity

NOTES

RELATED LINKS

Get-CrmTeamUsers

Get-CrmUserTeams

New-CrmUser

Remove-CrmUserParent

Set-CrmTeamUsers

Set-CrmUserTeams

Entity Class