< Back

Set-CrmUserManager

Sat Jan 18, 2020 4:06 pm

NAME Set-CrmUserManager



SYNOPSIS

Sets CRM user's manager.





SYNTAX

Set-CrmUserManager [-conn <CrmServiceClient>] [-UserId] <Guid> [-ManagerId] <Guid> [-KeepChildUsers] <Boolean>

[<CommonParameters>]





DESCRIPTION

The Set-CrmUserManager lets you set CRM user's manager.





PARAMETERS

-conn <CrmServiceClient>

A connection to your CRM organization. Use $conn = Get-CrmConnection <Parameters> to generate it.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-UserId <Guid>

An Id (guid) of CRM User.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ManagerId <Guid>

An Id (guid) of Manager.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-KeepChildUsers [<Boolean>]

Specify if you keep child users for the user.



Required? true

Position? 3

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 --------------------------



Set-CrmUserManager -conn $conn -UserId 3772fe6e-8a18-e511-80dc-c4346bc42d48 -ManagerId

5a18974c-ae18-e511-80dd-c4346bc44d24 -KeepChildUsers $True



This example sets a manager to a CRM User and keeps its child users.







-------------------------- Example 2 --------------------------



Set-CrmUserManager 3772fe6e-8a18-e511-80dc-c4346bc42d48 5a18974c-ae18-e511-80dd-c4346bc44d24 $True



This example sets a manager to a CRM User and keeps its child users by omitting parameters names.

When omitting parameter names, you do not provide $conn, cmdlets automatically finds it.









RELATED LINKS