# mssetowner()

Set the owner that will be used to establish ownership of new entities created.

## Arguments

Argument | Data Type | Description
ID or Name | string | The user ID, full name, or login name (domain\login)of the user to be used as the entity owner.

## Returns

Nothing. This function sets an internal variable that is then used when entities are created in Dynamics CRM.

## Description

By default, when a new entity is created the owner will be the user identity used when logging into Dynamics CRM (set in the connector).

This function allows you to override the default and specify the user to be used for ownership. Using this function, you can set the owner on a record by record basis during an import operation.

NOTE: This changes the default; the user set will be used for all entities until the next call to mssetowner()

## Examples

Example | Description
--- | ---
mssetowner("domain\fred") | Set the ownership of all entities
mssetowner(usermapid(#sourceID)) | Use the user map to map a source user id to a Dynamics user, ten set it as the default.

## See Also

usermap(), User Map