# setACCPACUser

### setaccpacuser(userName)

Sets the user name used to identify records created or updated during an import operation.

This overrides the default set in the connector.

### setaccpacuser(userName, tableName)

Sets the user name used to identify records created or updated during an import operation, for the table specified.

This overrides the default set in the connector, but the default is used for all other tables.

## Arguments

Argument | Data Type | Description
--- | --- | ---
User name | String | User name in either: first + " " + last or loginID
Table Name | String | Name of the table to set the user for

## Returns

Nothing

## Description

All standard tables in a Sage CRM MME database have fields CREATEBY and UPDATEBY. Inaport will normally set these field using the defulat user specified in the connector you established. This function allows you to override the default setting, either for all tables touched by the import or on a table by table basis.

It will set the ID used for the CREATEBY and UPDATEBy fields. In addition, for the Company table it will set the PrimaryUserID field.

## Examples

Example | Description
--- | ---
setaccpacuser("fred smith", "mytable") | Set the record owner to be "Fred Smith" for the table "mytable"