# msgetuserid()

Return the ID of a nominated user.

## 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. May also be: CON_LOGIN: return the ID of the login user COM_DEFAULT: return the ID of the default owner specified in the connector

## Returns

The string user ID.

## 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
--- | ---
msgetuserid("domain\fred") | Get the user ID for domain\fred
mssetowner(msgetuserid("CON_DEFAULT")) | Set the default owner back to the default specified in the connector.

## See Also

usermap(), User Map, mssetowner()