Compartilhar via


SetBusinessSystemUserRequest Class

Definition

Deprecated. Contains the data that is needed to move a system user (user) to a different business unit.

public ref class SetBusinessSystemUserRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class SetBusinessSystemUserRequest : Microsoft.Xrm.Sdk.OrganizationRequest
[<System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")>]
type SetBusinessSystemUserRequest = class
    inherit OrganizationRequest
Public NotInheritable Class SetBusinessSystemUserRequest
Inherits OrganizationRequest
Inheritance
SetBusinessSystemUserRequest
Attributes

Remarks

For the Web API use the SetBusinessSystemUser action.

This message request is deprecated. Use the UpdateRequest class instead. For more information see Behavior of specialized update operations.

Usage

Pass an instance of this class to the Execute(OrganizationRequest) method, which returns an instance of SetBusinessSystemUserResponse.

Privileges and Access Rights

To perform this action, the caller must have privileges on the /power-apps/developer/data-platform/reference/entities/systemuser entity and access rights on the records specified in the BusinessId and UserId properties.

Notes for Callers

You must specify a value for the ReassignPrincipal property. The instances of the entities that had been assigned to the user specified by the UserId property will be assigned to that security principal (user).

If any of the direct reports of the user are no longer in the new business unit hierarchy after the user is moved, these direct reports are updated to report to the previous manager of the user.

If the user has been moved out of their manager's business-unit hierarchy, the manager of the user is set to null. You may list the same user for both the UserId and ReassignPrincipal properties if you would like the user to retain the entities assigned.

Constructors

SetBusinessSystemUserRequest()

Initializes a new instance of the SetBusinessSystemUserRequest class.

Properties

BusinessId

Gets or sets the ID of the business unit to which the user is moved. Required.

DoNotMoveAllRecords

Gets or sets the value to determine whether to move owned records to new Business Unit.

ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from OrganizationRequest)
Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
ReassignPrincipal

Gets or sets the target security principal (user) to which the instances of entities previously owned by the user are to be assigned. Required.

RequestId

Gets or sets the ID of the request. Optional.

(Inherited from OrganizationRequest)
RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
UserId

Gets or sets the ID of the user. Required.

Applies to

See also