< Back

Set-CrmUserBusinessUnit

Sat Jan 18, 2020 4:06 pm

NAME Set-CrmUserBusinessUnit



SYNOPSIS

Moves Crm User to another Business Unit.





SYNTAX

Set-CrmUserBusinessUnit [-conn <CrmServiceClient>] [-UserId] <Guid> [-BusinessUnitId] <Guid> [[-ReassignUserId]

<Guid>] [<CommonParameters>]





DESCRIPTION

The Set-CrmUserBusinessUnit lets you move Crm User to another Business Unit. You can specify different CRM UserId

to ReassignUserId to update ownership of records as well.





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 which moves to another Business Unit.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-BusinessUnitId <Guid>

An Id (guid) of Business Unit.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ReassignUserId <Guid>

An Id (guid) of CRM User to own records of Moving CRM User. You can specify same Id as UserId or omit it if

you want to keep records ownership.



Required? false

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-CrmUserBusinessUnit -conn $conn -UserId 3772fe6e-8a18-e511-80dc-c4346bc42d48 -BusinessUnitId

5a18974c-ae18-e511-80dd-c4346bc44d24 -ReassignUserId 3772fe6e-8a18-e511-80dc-c4346bc42d48



This example moves a CRM User to specified BusinessUnit, then keeps the records ownership.







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



Set-CrmUserBusinessUnit 3772fe6e-8a18-e511-80dc-c4346bc42d48 5a18974c-ae18-e511-80dd-c4346bc44d24

f9d40920-7a43-4f51-9749-0549c4caf67d



This example moves a CRM User to specified BusinessUnit, then reassign the records ownership by omitting

parameters names.

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









RELATED LINKS