---
schema_version: "1"
id: f039770212131dd752a35b9009d25528a6a7095f1786f22cb694445ec38b3549
title: Add
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_accountUserAdd.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_accountUserAdd.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 119be607c0c24453a74bd5f17b24c9e3cc7882375bda885861fc4681e37c7aad
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Add

## Overview

Creates a new account user based on the passed parameters

### Syntax

Add(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                                                       |
| ------- | ------ | ------------ | ----------------------------------------------------------------- |
| **1**   | object | **Required** | A JSON object representing the properties of the new account user |

## Example

This sample code adds a new account user and specifies both a default business unit as well as associated business units for the user based on the provided external keys:

```
var newUser = {
    "Name" : "Andrea Cruz",
    "UserID" : "acruz",
    "Password" : "PASSWORD",
    "Email" : "acruz@example.com",
    "ClientID" : 123456789,
    "DefaultBusinessUnitKey": "childBUKey",
    "AssociatedBusinessUnits" : ["childBUKey", "grandchildBUKey"]
};

var status = AccountUser.Add(newUser);
```
