< Back
Get-MyCrmUserId
Post
NAME Get-MyCrmUserId
SYNOPSIS
Retrieves login user's CRM UserId (guid).
SYNTAX
Get-MyCrmUserId [[-conn] <CrmServiceClient>] [<CommonParameters>]
DESCRIPTION
The Get-MyCrmUserId cmdlet retrieves login user's CRM UserId.
PARAMETERS
-conn <CrmServiceClient>
A connection to your CRM organization. Use $conn = Get-CrmConnection <Parameters> to generate it.
Required? false
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
-------------------------- Example 1 --------------------------
Get-MyCrmUserId -conn $conn
This example returns login user's CRM UserId.
Guid
----
2fde1c38-c483-4464-a521-1e963ea1d166
-------------------------- Example 2 --------------------------
Get-MyCrmUserId
This example returns login user's CRM UserId by ommiting -conn parameter.
To omit conn parameter, you need creating $conn in advance, then cmdlets automatically finds it.
RELATED LINKS
SYNOPSIS
Retrieves login user's CRM UserId (guid).
SYNTAX
Get-MyCrmUserId [[-conn] <CrmServiceClient>] [<CommonParameters>]
DESCRIPTION
The Get-MyCrmUserId cmdlet retrieves login user's CRM UserId.
PARAMETERS
-conn <CrmServiceClient>
A connection to your CRM organization. Use $conn = Get-CrmConnection <Parameters> to generate it.
Required? false
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
-------------------------- Example 1 --------------------------
Get-MyCrmUserId -conn $conn
This example returns login user's CRM UserId.
Guid
----
2fde1c38-c483-4464-a521-1e963ea1d166
-------------------------- Example 2 --------------------------
Get-MyCrmUserId
This example returns login user's CRM UserId by ommiting -conn parameter.
To omit conn parameter, you need creating $conn in advance, then cmdlets automatically finds it.
RELATED LINKS