> This page is for Developers.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://zuora.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://zuora.ferndocs.com/_mcp/server.

# Bulk create users

POST https://one.zuora.com/scim/v2/Users/bulk
Content-Type: application/json

Creates multiple users within an organization.

Reference: https://zuora.ferndocs.com/developers/api-reference/zuora-api/oneid/scim/bulk-create-users

## Authentication

- `Authorization` header (bearer token, required) — Use `Bearer {{token}}` in the `Authorization` header for authentication.

## Request

### Body (application/json)

This endpoint expects a list of ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItems.

- `list of ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItems`

## Response

### 200

OK

- `schemas` (list of string, optional) — A list of schema URNs that describe the structure of the response. These URNs indicate the schemas that are applicable to the data.
- `id` (string, optional, nullable) — A unique identifier for the response object, often used for referencing or tracking.
- `externalId` (string, optional, nullable) — An external identifier for the resource, often used for integration with external systems.
- `totalResults` (integer, optional) — The total number of user resources available in the response, irrespective of pagination.
- `resources` (list of ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItems, optional)
- `startIndex` (integer, optional)
- `itemsPerPage` (integer, optional)

### 201

Created

## Errors

### 401 Unauthorized Error

Unauthorized

- `success` (boolean, optional) — Indicates whether the operation was successful or not. For a 401 Unauthorized error, this will be `false`.
- `reasons` (list of ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaReasonsItems, optional)

### 403 Forbidden Error

Forbidden

- `timestamp` (datetime, optional) — The date and time when the error occurred, in ISO 8601 format.
- `status` (integer, optional) — The HTTP status code for the response, which is 403 in this case, indicating that access to the resource is forbidden.
- `error` (string, optional) — A short, descriptive string representing the error type. For a 403 response, this is typically 'Forbidden'.
- `message` (string, optional) — A human-readable message providing additional details about the error. This message typically explains why access is denied.
- `path` (string, optional) — The URI path of the resource where the error occurred.

### 404 Not Found Error

Not Found

- `schemas` (list of string, optional) — A list of schema URNs that describe the structure of the error response. This helps in understanding the error context.
- `status` (string, optional) — The HTTP status code for the response, which is 404 in this case, indicating that the requested resource could not be found.
- `detail` (string, optional) — A human-readable message providing additional information about the error. This typically explains what resource was not found.

## Types

### ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItems

- `schemas` (list of string, optional) — A list of schema URNs that describe the structure of the user resource. These URNs indicate the schemas that are applicable to the user data.
- `name` (ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsName, optional)
- `emails` (list of ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsEmailsItems, optional)
- `roles` (list of ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsRolesItems, optional)
- `userName` (string, optional) — The username or login name of the user.
- `preferredLanguage` (string, optional) — The preferred language of the user, typically represented by a locale code (e.g., 'en', 'fr').
- `locale` (string, optional) — The locale of the user, typically represented by a locale code (e.g., 'en-US', 'fr-FR').
- `urn:zuora:scim:schemas:1.0:UserExtension` (ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10UserExtension, optional)

### ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItems

- `schemas` (list of string, optional) — A list of schema URNs that describe the structure of the individual user resource. These URNs indicate the schemas applicable to the user data.
- `id` (string, optional, nullable) — A unique identifier for the user resource.
- `externalId` (string, optional, nullable) — An external identifier for the resource, often used for integration with external systems.
- `meta` (ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsMeta, optional, nullable)
- `userName` (string, optional) — The username or login name for the user.
- `name` (ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsName, optional)
- `displayName` (string, optional) — The display name of the user, typically used for user identification.
- `preferredLanguage` (string, optional) — The user's preferred language, typically represented by a locale code (e.g., 'en', 'fr').
- `locale` (string, optional) — The user's locale, typically represented as a locale code (e.g., 'en-US', 'fr-FR').
- `active` (boolean, optional) — Indicates whether the user is currently active or not.
- `emails` (list of ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems, optional)
- `roles` (list of ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsRolesItems, optional)
- `urn:zuora:scim:schemas:1.0:UserExtension` (ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10UserExtension, optional)

### ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaReasonsItems

- `message` (string, optional) — A brief description of the reason for the unauthorized access. This message typically explains why the request is unauthorized, such as missing or invalid authentication credentials.
- `code` (string, optional) — An error code that provides a more specific identification of the issue. This code can be used for debugging or logging purposes.

### ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsName

- `givenName` (string, optional) — The given (or first) name of the user.
- `familyName` (string, optional) — The family (or last) name of the user.
- `formatted` (string, optional) — The full name of the user in a formatted string. Typically includes given name and family name.

### ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsEmailsItems

- `value` (string, optional) — The email address of the user.
- `type` (string, optional) — The type of email address (e.g., 'work', 'home').
- `primary` (boolean, optional) — Indicates whether this email address is the user's primary email.

### ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsRolesItems

- `value` (string, optional) — The role assigned to the user, typically represented by an identifier.
- `display` (string, optional, nullable)

### ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10UserExtension

- `schemas` (list of string, optional) — A list of schema URNs that describe additional extensions or custom schemas applied to the user resource.
- `organizationId` (string, optional) — An identifier for the organization to which the user belongs. This may be used for organizational or grouping purposes.

### ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsMeta

- `created` (datetime, optional) — The date and time when the user resource was created, in ISO 8601 format.
- `resourceType` (string, optional) — The type of the resource, typically 'User' for user resources.
- `location` (string, optional) — The URL where the user resource can be accessed.

### ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsName

- `formatted` (string, optional) — The full name of the user, formatted as a single string.
- `familyName` (string, optional) — The family (or last) name of the user.
- `givenName` (string, optional) — The given (or first) name of the user.

### ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems

- `value` (string, optional) — The email address of the user.
- `display` (string, optional) — A display name or description for the email address.
- `type` (string, optional) — The type of email address (e.g., 'work', 'home').
- `primary` (boolean, optional) — Indicates whether this email address is the primary one for the user.

### ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsRolesItems

- `value` (string, optional) — The role assigned to the user, often represented by an identifier.
- `display` (string, optional, nullable)

### ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10UserExtension

- `schemas` (list of string, optional) — A list of schema URNs that describe additional extensions or custom schemas applied to the user resource.
- `organizationId` (string, optional) — An identifier for the organization to which the user belongs. This may be used for organizational or grouping purposes.
- `status` (string, optional) — The current status of the user. Example values might include 'NEW', 'ACTIVE', 'INACTIVE', etc.
- `ssoEnabled` (boolean, optional) — Indicates whether Single Sign-On (SSO) is enabled for the user.
- `region` (string, optional)

## Examples

### SCIM_bulkCreateUsers_example

**Request**

```json
[
  {
    "schemas": [
      "urn:zuora:scim:schemas:1.0:UserExtension",
      "urn:ietf:params:scim:schemas:core:2.0:User"
    ],
    "name": {
      "givenName": "Amy",
      "familyName": "Lawrence",
      "formatted": "Amy Lawrence"
    },
    "emails": [
      {
        "value": "Amy+test3@zuora.com",
        "type": "work",
        "primary": true
      }
    ],
    "roles": [
      {
        "value": "USER"
      }
    ],
    "userName": "Amy+test3@zuora.com",
    "preferredLanguage": "en",
    "locale": "en-US",
    "urn:zuora:scim:schemas:1.0:UserExtension": {
      "schemas": [
        "urn:zuora:scim:schemas:1.0:UserExtension"
      ],
      "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
    }
  },
  {
    "schemas": [
      "urn:zuora:scim:schemas:1.0:UserExtension",
      "urn:ietf:params:scim:schemas:core:2.0:User"
    ],
    "name": {
      "givenName": "Amy",
      "familyName": "Lawrence",
      "formatted": "Amy Lawrence"
    },
    "emails": [
      {
        "value": "Amy+test4@zuora.com",
        "type": "work",
        "primary": true
      }
    ],
    "roles": [
      {
        "value": "USER"
      }
    ],
    "userName": "Amy+test4@zuora.com",
    "preferredLanguage": "en",
    "locale": "en-US",
    "urn:zuora:scim:schemas:1.0:UserExtension": {
      "schemas": [
        "urn:zuora:scim:schemas:1.0:UserExtension"
      ],
      "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
    }
  }
]
```

**Response**

```json
{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:ListResponse"
  ],
  "id": null,
  "externalId": null,
  "totalResults": 2,
  "resources": [
    {
      "schemas": [
        "urn:zuora:scim:schemas:1.0:UserExtension",
        "urn:ietf:params:scim:schemas:core:2.0:User"
      ],
      "id": "8b40ccce-5fb7-4643-9b78-e194fe5303e6",
      "externalId": "Amy+test3@zuora.com",
      "meta": {
        "created": "2024-10-03T09:37:39.851Z",
        "resourceType": "User",
        "location": "http://localhost:9900/scim/v2/Users/bulk/8b40ccce-5fb7-4643-9b78-e194fe5303e6"
      },
      "userName": "Amy+test3@zuora.com",
      "name": {
        "formatted": "Amy Lawrence",
        "familyName": "Amy",
        "givenName": "Lawrence"
      },
      "displayName": "Amy Lawrence",
      "preferredLanguage": "en",
      "locale": "en-US",
      "active": true,
      "emails": [
        {
          "value": "Amy+test3@zuora.com",
          "display": "Amy+test3@zuora.com",
          "type": "work",
          "primary": true
        }
      ],
      "roles": [
        {
          "value": "USER",
          "display": "USER"
        }
      ],
      "urn:zuora:scim:schemas:1.0:UserExtension": {
        "schemas": [
          "urn:zuora:scim:schemas:1.0:UserExtension"
        ],
        "organizationId": "5619df2e-fa8c-47fa-9c1e-16ab5af4936e",
        "status": "ACTIVE",
        "ssoEnabled": true,
        "region": "EU"
      }
    },
    {
      "schemas": [
        "urn:zuora:scim:schemas:1.0:UserExtension",
        "urn:ietf:params:scim:schemas:core:2.0:User"
      ],
      "id": "41aa4e47-01e2-4d85-a6bc-d88e18477011",
      "externalId": "Amy+test4@zuora.com",
      "meta": {
        "created": "2024-10-03T09:37:40.161Z",
        "resourceType": "User",
        "location": "http://localhost:9900/scim/v2/Users/bulk/41aa4e47-01e2-4d85-a6bc-d88e18477011"
      },
      "userName": "Amy+test4@zuora.com",
      "name": {
        "formatted": "Amy Lawrence",
        "familyName": "Amy",
        "givenName": "Lawrence"
      },
      "displayName": "Amy Lawrence",
      "preferredLanguage": "en",
      "locale": "en-US",
      "active": true,
      "emails": [
        {
          "value": "Amy+test4@zuora.com",
          "display": "Amy+test4@zuora.com",
          "type": "work",
          "primary": true
        }
      ],
      "roles": [
        {
          "value": "USER",
          "display": "USER"
        }
      ],
      "urn:zuora:scim:schemas:1.0:UserExtension": {
        "schemas": [
          "urn:zuora:scim:schemas:1.0:UserExtension"
        ],
        "organizationId": "5619df2e-fa8c-47fa-9c1e-16ab5af4936e",
        "status": "ACTIVE",
        "ssoEnabled": true,
        "region": "EU"
      }
    }
  ],
  "startIndex": 1,
  "itemsPerPage": 2,
  "meta": null
}
```

**SDK Code**

```python SCIM_bulkCreateUsers_example
import requests

url = "https://one.zuora.com/scim/v2/Users/bulk"

payload = [
    {
        "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension", "urn:ietf:params:scim:schemas:core:2.0:User"],
        "name": {
            "givenName": "Amy",
            "familyName": "Lawrence",
            "formatted": "Amy Lawrence"
        },
        "emails": [
            {
                "value": "Amy+test3@zuora.com",
                "type": "work",
                "primary": True
            }
        ],
        "roles": [{ "value": "USER" }],
        "userName": "Amy+test3@zuora.com",
        "preferredLanguage": "en",
        "locale": "en-US",
        "urn:zuora:scim:schemas:1.0:UserExtension": {
            "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension"],
            "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
        }
    },
    {
        "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension", "urn:ietf:params:scim:schemas:core:2.0:User"],
        "name": {
            "givenName": "Amy",
            "familyName": "Lawrence",
            "formatted": "Amy Lawrence"
        },
        "emails": [
            {
                "value": "Amy+test4@zuora.com",
                "type": "work",
                "primary": True
            }
        ],
        "roles": [{ "value": "USER" }],
        "userName": "Amy+test4@zuora.com",
        "preferredLanguage": "en",
        "locale": "en-US",
        "urn:zuora:scim:schemas:1.0:UserExtension": {
            "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension"],
            "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
        }
    }
]
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript SCIM_bulkCreateUsers_example
const url = 'https://one.zuora.com/scim/v2/Users/bulk';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '[{"schemas":["urn:zuora:scim:schemas:1.0:UserExtension","urn:ietf:params:scim:schemas:core:2.0:User"],"name":{"givenName":"Amy","familyName":"Lawrence","formatted":"Amy Lawrence"},"emails":[{"value":"Amy+test3@zuora.com","type":"work","primary":true}],"roles":[{"value":"USER"}],"userName":"Amy+test3@zuora.com","preferredLanguage":"en","locale":"en-US","urn:zuora:scim:schemas:1.0:UserExtension":{"schemas":["urn:zuora:scim:schemas:1.0:UserExtension"],"organizationId":"ec141dc2-901e-4813-a25d-ef480cff1e26"}},{"schemas":["urn:zuora:scim:schemas:1.0:UserExtension","urn:ietf:params:scim:schemas:core:2.0:User"],"name":{"givenName":"Amy","familyName":"Lawrence","formatted":"Amy Lawrence"},"emails":[{"value":"Amy+test4@zuora.com","type":"work","primary":true}],"roles":[{"value":"USER"}],"userName":"Amy+test4@zuora.com","preferredLanguage":"en","locale":"en-US","urn:zuora:scim:schemas:1.0:UserExtension":{"schemas":["urn:zuora:scim:schemas:1.0:UserExtension"],"organizationId":"ec141dc2-901e-4813-a25d-ef480cff1e26"}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go SCIM_bulkCreateUsers_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://one.zuora.com/scim/v2/Users/bulk"

	payload := strings.NewReader("[\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test3@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test3@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  },\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test4@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test4@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby SCIM_bulkCreateUsers_example
require 'uri'
require 'net/http'

url = URI("https://one.zuora.com/scim/v2/Users/bulk")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test3@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test3@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  },\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test4@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test4@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  }\n]"

response = http.request(request)
puts response.read_body
```

```java SCIM_bulkCreateUsers_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://one.zuora.com/scim/v2/Users/bulk")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("[\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test3@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test3@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  },\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test4@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test4@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  }\n]")
  .asString();
```

```php SCIM_bulkCreateUsers_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://one.zuora.com/scim/v2/Users/bulk', [
  'body' => '[
  {
    "schemas": [
      "urn:zuora:scim:schemas:1.0:UserExtension",
      "urn:ietf:params:scim:schemas:core:2.0:User"
    ],
    "name": {
      "givenName": "Amy",
      "familyName": "Lawrence",
      "formatted": "Amy Lawrence"
    },
    "emails": [
      {
        "value": "Amy+test3@zuora.com",
        "type": "work",
        "primary": true
      }
    ],
    "roles": [
      {
        "value": "USER"
      }
    ],
    "userName": "Amy+test3@zuora.com",
    "preferredLanguage": "en",
    "locale": "en-US",
    "urn:zuora:scim:schemas:1.0:UserExtension": {
      "schemas": [
        "urn:zuora:scim:schemas:1.0:UserExtension"
      ],
      "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
    }
  },
  {
    "schemas": [
      "urn:zuora:scim:schemas:1.0:UserExtension",
      "urn:ietf:params:scim:schemas:core:2.0:User"
    ],
    "name": {
      "givenName": "Amy",
      "familyName": "Lawrence",
      "formatted": "Amy Lawrence"
    },
    "emails": [
      {
        "value": "Amy+test4@zuora.com",
        "type": "work",
        "primary": true
      }
    ],
    "roles": [
      {
        "value": "USER"
      }
    ],
    "userName": "Amy+test4@zuora.com",
    "preferredLanguage": "en",
    "locale": "en-US",
    "urn:zuora:scim:schemas:1.0:UserExtension": {
      "schemas": [
        "urn:zuora:scim:schemas:1.0:UserExtension"
      ],
      "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
    }
  }
]',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp SCIM_bulkCreateUsers_example
using RestSharp;

var client = new RestClient("https://one.zuora.com/scim/v2/Users/bulk");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test3@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test3@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  },\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test4@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test4@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift SCIM_bulkCreateUsers_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  [
    "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension", "urn:ietf:params:scim:schemas:core:2.0:User"],
    "name": [
      "givenName": "Amy",
      "familyName": "Lawrence",
      "formatted": "Amy Lawrence"
    ],
    "emails": [
      [
        "value": "Amy+test3@zuora.com",
        "type": "work",
        "primary": true
      ]
    ],
    "roles": [["value": "USER"]],
    "userName": "Amy+test3@zuora.com",
    "preferredLanguage": "en",
    "locale": "en-US",
    "urn:zuora:scim:schemas:1.0:UserExtension": [
      "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension"],
      "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
    ]
  ],
  [
    "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension", "urn:ietf:params:scim:schemas:core:2.0:User"],
    "name": [
      "givenName": "Amy",
      "familyName": "Lawrence",
      "formatted": "Amy Lawrence"
    ],
    "emails": [
      [
        "value": "Amy+test4@zuora.com",
        "type": "work",
        "primary": true
      ]
    ],
    "roles": [["value": "USER"]],
    "userName": "Amy+test4@zuora.com",
    "preferredLanguage": "en",
    "locale": "en-US",
    "urn:zuora:scim:schemas:1.0:UserExtension": [
      "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension"],
      "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://one.zuora.com/scim/v2/Users/bulk")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### SCIM_bulkCreateUsers_example

**Request**

```json
[
  {
    "schemas": [
      "urn:zuora:scim:schemas:1.0:UserExtension",
      "urn:ietf:params:scim:schemas:core:2.0:User"
    ],
    "name": {
      "givenName": "Amy",
      "familyName": "Lawrence",
      "formatted": "Amy Lawrence"
    },
    "emails": [
      {
        "value": "Amy+test3@zuora.com",
        "type": "work",
        "primary": true
      }
    ],
    "roles": [
      {
        "value": "USER"
      }
    ],
    "userName": "Amy+test3@zuora.com",
    "preferredLanguage": "en",
    "locale": "en-US",
    "urn:zuora:scim:schemas:1.0:UserExtension": {
      "schemas": [
        "urn:zuora:scim:schemas:1.0:UserExtension"
      ],
      "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
    }
  },
  {
    "schemas": [
      "urn:zuora:scim:schemas:1.0:UserExtension",
      "urn:ietf:params:scim:schemas:core:2.0:User"
    ],
    "name": {
      "givenName": "Amy",
      "familyName": "Lawrence",
      "formatted": "Amy Lawrence"
    },
    "emails": [
      {
        "value": "Amy+test4@zuora.com",
        "type": "work",
        "primary": true
      }
    ],
    "roles": [
      {
        "value": "USER"
      }
    ],
    "userName": "Amy+test4@zuora.com",
    "preferredLanguage": "en",
    "locale": "en-US",
    "urn:zuora:scim:schemas:1.0:UserExtension": {
      "schemas": [
        "urn:zuora:scim:schemas:1.0:UserExtension"
      ],
      "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
    }
  }
]
```

**Response**

```json
{}
```

**SDK Code**

```python SCIM_bulkCreateUsers_example
import requests

url = "https://one.zuora.com/scim/v2/Users/bulk"

payload = [
    {
        "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension", "urn:ietf:params:scim:schemas:core:2.0:User"],
        "name": {
            "givenName": "Amy",
            "familyName": "Lawrence",
            "formatted": "Amy Lawrence"
        },
        "emails": [
            {
                "value": "Amy+test3@zuora.com",
                "type": "work",
                "primary": True
            }
        ],
        "roles": [{ "value": "USER" }],
        "userName": "Amy+test3@zuora.com",
        "preferredLanguage": "en",
        "locale": "en-US",
        "urn:zuora:scim:schemas:1.0:UserExtension": {
            "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension"],
            "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
        }
    },
    {
        "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension", "urn:ietf:params:scim:schemas:core:2.0:User"],
        "name": {
            "givenName": "Amy",
            "familyName": "Lawrence",
            "formatted": "Amy Lawrence"
        },
        "emails": [
            {
                "value": "Amy+test4@zuora.com",
                "type": "work",
                "primary": True
            }
        ],
        "roles": [{ "value": "USER" }],
        "userName": "Amy+test4@zuora.com",
        "preferredLanguage": "en",
        "locale": "en-US",
        "urn:zuora:scim:schemas:1.0:UserExtension": {
            "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension"],
            "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
        }
    }
]
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript SCIM_bulkCreateUsers_example
const url = 'https://one.zuora.com/scim/v2/Users/bulk';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '[{"schemas":["urn:zuora:scim:schemas:1.0:UserExtension","urn:ietf:params:scim:schemas:core:2.0:User"],"name":{"givenName":"Amy","familyName":"Lawrence","formatted":"Amy Lawrence"},"emails":[{"value":"Amy+test3@zuora.com","type":"work","primary":true}],"roles":[{"value":"USER"}],"userName":"Amy+test3@zuora.com","preferredLanguage":"en","locale":"en-US","urn:zuora:scim:schemas:1.0:UserExtension":{"schemas":["urn:zuora:scim:schemas:1.0:UserExtension"],"organizationId":"ec141dc2-901e-4813-a25d-ef480cff1e26"}},{"schemas":["urn:zuora:scim:schemas:1.0:UserExtension","urn:ietf:params:scim:schemas:core:2.0:User"],"name":{"givenName":"Amy","familyName":"Lawrence","formatted":"Amy Lawrence"},"emails":[{"value":"Amy+test4@zuora.com","type":"work","primary":true}],"roles":[{"value":"USER"}],"userName":"Amy+test4@zuora.com","preferredLanguage":"en","locale":"en-US","urn:zuora:scim:schemas:1.0:UserExtension":{"schemas":["urn:zuora:scim:schemas:1.0:UserExtension"],"organizationId":"ec141dc2-901e-4813-a25d-ef480cff1e26"}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go SCIM_bulkCreateUsers_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://one.zuora.com/scim/v2/Users/bulk"

	payload := strings.NewReader("[\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test3@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test3@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  },\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test4@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test4@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby SCIM_bulkCreateUsers_example
require 'uri'
require 'net/http'

url = URI("https://one.zuora.com/scim/v2/Users/bulk")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test3@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test3@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  },\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test4@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test4@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  }\n]"

response = http.request(request)
puts response.read_body
```

```java SCIM_bulkCreateUsers_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://one.zuora.com/scim/v2/Users/bulk")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("[\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test3@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test3@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  },\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test4@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test4@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  }\n]")
  .asString();
```

```php SCIM_bulkCreateUsers_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://one.zuora.com/scim/v2/Users/bulk', [
  'body' => '[
  {
    "schemas": [
      "urn:zuora:scim:schemas:1.0:UserExtension",
      "urn:ietf:params:scim:schemas:core:2.0:User"
    ],
    "name": {
      "givenName": "Amy",
      "familyName": "Lawrence",
      "formatted": "Amy Lawrence"
    },
    "emails": [
      {
        "value": "Amy+test3@zuora.com",
        "type": "work",
        "primary": true
      }
    ],
    "roles": [
      {
        "value": "USER"
      }
    ],
    "userName": "Amy+test3@zuora.com",
    "preferredLanguage": "en",
    "locale": "en-US",
    "urn:zuora:scim:schemas:1.0:UserExtension": {
      "schemas": [
        "urn:zuora:scim:schemas:1.0:UserExtension"
      ],
      "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
    }
  },
  {
    "schemas": [
      "urn:zuora:scim:schemas:1.0:UserExtension",
      "urn:ietf:params:scim:schemas:core:2.0:User"
    ],
    "name": {
      "givenName": "Amy",
      "familyName": "Lawrence",
      "formatted": "Amy Lawrence"
    },
    "emails": [
      {
        "value": "Amy+test4@zuora.com",
        "type": "work",
        "primary": true
      }
    ],
    "roles": [
      {
        "value": "USER"
      }
    ],
    "userName": "Amy+test4@zuora.com",
    "preferredLanguage": "en",
    "locale": "en-US",
    "urn:zuora:scim:schemas:1.0:UserExtension": {
      "schemas": [
        "urn:zuora:scim:schemas:1.0:UserExtension"
      ],
      "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
    }
  }
]',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp SCIM_bulkCreateUsers_example
using RestSharp;

var client = new RestClient("https://one.zuora.com/scim/v2/Users/bulk");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test3@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test3@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  },\n  {\n    \"schemas\": [\n      \"urn:zuora:scim:schemas:1.0:UserExtension\",\n      \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"name\": {\n      \"givenName\": \"Amy\",\n      \"familyName\": \"Lawrence\",\n      \"formatted\": \"Amy Lawrence\"\n    },\n    \"emails\": [\n      {\n        \"value\": \"Amy+test4@zuora.com\",\n        \"type\": \"work\",\n        \"primary\": true\n      }\n    ],\n    \"roles\": [\n      {\n        \"value\": \"USER\"\n      }\n    ],\n    \"userName\": \"Amy+test4@zuora.com\",\n    \"preferredLanguage\": \"en\",\n    \"locale\": \"en-US\",\n    \"urn:zuora:scim:schemas:1.0:UserExtension\": {\n      \"schemas\": [\n        \"urn:zuora:scim:schemas:1.0:UserExtension\"\n      ],\n      \"organizationId\": \"ec141dc2-901e-4813-a25d-ef480cff1e26\"\n    }\n  }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift SCIM_bulkCreateUsers_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  [
    "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension", "urn:ietf:params:scim:schemas:core:2.0:User"],
    "name": [
      "givenName": "Amy",
      "familyName": "Lawrence",
      "formatted": "Amy Lawrence"
    ],
    "emails": [
      [
        "value": "Amy+test3@zuora.com",
        "type": "work",
        "primary": true
      ]
    ],
    "roles": [["value": "USER"]],
    "userName": "Amy+test3@zuora.com",
    "preferredLanguage": "en",
    "locale": "en-US",
    "urn:zuora:scim:schemas:1.0:UserExtension": [
      "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension"],
      "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
    ]
  ],
  [
    "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension", "urn:ietf:params:scim:schemas:core:2.0:User"],
    "name": [
      "givenName": "Amy",
      "familyName": "Lawrence",
      "formatted": "Amy Lawrence"
    ],
    "emails": [
      [
        "value": "Amy+test4@zuora.com",
        "type": "work",
        "primary": true
      ]
    ],
    "roles": [["value": "USER"]],
    "userName": "Amy+test4@zuora.com",
    "preferredLanguage": "en",
    "locale": "en-US",
    "urn:zuora:scim:schemas:1.0:UserExtension": [
      "schemas": ["urn:zuora:scim:schemas:1.0:UserExtension"],
      "organizationId": "ec141dc2-901e-4813-a25d-ef480cff1e26"
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://one.zuora.com/scim/v2/Users/bulk")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```