---
updatedAt: 2026-04-08T10:22:11.000Z
agentTools:
  projectIndex: https://developer.goacoustic.com/acoustic-content/llms.txt
---

# Add a new user.

Adds a new user and returns the user object.<br />User roles: admin

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.142",
    "x-ibm-name": "ibm-watson-content-hub-api",
    "title": "Acoustic Content API",
    "description": "Copyright © Acoustic, L.P. 2019"
  },
  "tags": [
    {
      "name": "Administering user profiles"
    }
  ],
  "paths": {
    "/user-profile/v1/users": {
      "parameters": [],
      "post": {
        "tags": [
          "Administering user profiles"
        ],
        "x-ibm-dx-security-user-roles": [
          "admin"
        ],
        "summary": "Add a new user.",
        "description": "Adds a new user and returns the user object.<br />User roles: admin",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The user object that might be sent for user creation.",
                "type": "object",
                "required": [
                  "externalId",
                  "roles"
                ],
                "properties": {
                  "externalId": {
                    "type": "string",
                    "pattern": "^[0-9A-Z]{10}$|^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$,",
                    "description": "The unique external identifier of the user (e.g. BlueID). Although, this field can store email addresses, other types of unique identifiers may be stored too. Do not use this field as a replacement for the user attribute email address.",
                    "maxLength": 512
                  },
                  "firstName": {
                    "type": "string",
                    "description": "The first name of the user",
                    "maxLength": 512
                  },
                  "lastName": {
                    "type": "string",
                    "description": "The last name of the user",
                    "maxLength": 512
                  },
                  "uid": {
                    "type": "string",
                    "description": "Acoustic Id of the user, if not present during POST call an Acoustic Id will be created for the user",
                    "maxLength": 30
                  },
                  "displayName": {
                    "type": "string",
                    "description": "The name of the user that can be displayed in the UI",
                    "maxLength": 512
                  },
                  "email": {
                    "type": "string",
                    "description": "The email of the user that can be displayed in the UI",
                    "format": "email",
                    "maxLength": 512
                  },
                  "roles": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "authenticatedVisitor",
                        "viewer",
                        "editor",
                        "manager",
                        "admin"
                      ]
                    },
                    "minItems": 1,
                    "maxItems": 1,
                    "uniqueItems": true,
                    "description": "The roles of the user that will be used for access control"
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "description": "User object that needs to be added.",
          "required": true
        },
        "responses": {
          "201": {
            "description": "User was created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "description": "The user object that might be returned.",
                  "type": "object",
                  "required": [
                    "externalId",
                    "id",
                    "roles"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                      "description": "The unique internal identifier of the user"
                    },
                    "externalId": {
                      "type": "string",
                      "pattern": "^[0-9A-Z]{10}$|^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$,",
                      "description": "The unique external identifier of the user (e.g. BlueID). Although, this field can store email addresses, other types of unique identifiers may be stored too. Do not use this field as a replacement for the user attribute email address.",
                      "maxLength": 512
                    },
                    "firstName": {
                      "type": "string",
                      "description": "The first name of the user",
                      "maxLength": 512
                    },
                    "lastName": {
                      "type": "string",
                      "description": "The last name of the user",
                      "maxLength": 512
                    },
                    "uid": {
                      "type": "string",
                      "description": "Acoustic Id of the user, if not present during POST call an Acoustic Id will be created for the user",
                      "maxLength": 30
                    },
                    "displayName": {
                      "type": "string",
                      "description": "The name of the user that can be displayed in the UI",
                      "maxLength": 512
                    },
                    "email": {
                      "type": "string",
                      "description": "The email of the user that can be displayed in the UI",
                      "format": "email",
                      "maxLength": 512
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "authenticatedVisitor",
                          "viewer",
                          "editor",
                          "manager",
                          "admin"
                        ]
                      },
                      "minItems": 0,
                      "description": "The roles of the user that will be used for access control (empty for the anonymous user)"
                    },
                    "links": {
                      "type": "object",
                      "required": [
                        "self"
                      ],
                      "properties": {
                        "self": {
                          "description": "URI pointing to this document",
                          "type": "object",
                          "required": [
                            "href",
                            "methods"
                          ],
                          "properties": {
                            "href": {
                              "type": "string"
                            },
                            "methods": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "description": "The supported HTTP methods",
                                "enum": [
                                  "GET",
                                  "POST",
                                  "PUT",
                                  "DELETE"
                                ]
                              }
                            },
                            "name": {
                              "description": "Single value object where key is the locale and value is the display name",
                              "type": "object"
                            }
                          }
                        }
                      }
                    },
                    "lastLogin": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Date when this user logged in for the last time before current session"
                    },
                    "created": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Date when this item was created"
                    },
                    "creator": {
                      "description": "URI pointing to the User who has created the item",
                      "type": "object",
                      "required": [
                        "id"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                        }
                      }
                    },
                    "lastModified": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Date when this item was modified for the last time"
                    },
                    "lastModifier": {
                      "description": "URI pointing to the User who has modified the item",
                      "type": "object",
                      "required": [
                        "id"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                        }
                      }
                    },
                    "privacyNotice": {
                      "description": "The privacy notice that the user has accepted",
                      "type": "object",
                      "required": [
                        "acceptRequired"
                      ],
                      "properties": {
                        "version": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "description": "The version of the privacy notice."
                        },
                        "accepted": {
                          "type": "string",
                          "format": "date-time",
                          "description": "The date when the user accepted this version of the privacy notice."
                        },
                        "locale": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "description": "The language in which the accepted privacy notice is written."
                        },
                        "acceptRequired": {
                          "type": "boolean",
                          "description": "Defines if an acceptance of the latest privacy notice is required."
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Response indicating a client error.",
            "content": {
              "application/json": {
                "schema": {
                  "description": "This JSON record represents an error condition.",
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "This JSON record represents an individual error or warning contained in an error message.",
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer",
                            "description": "An error code defined by the User Profile service."
                          },
                          "message": {
                            "type": "string",
                            "description": "A message describing what went wrong."
                          },
                          "description": {
                            "type": "string",
                            "description": "Further explanation of the error condition and potential next steps to resolve the problem."
                          },
                          "more_info": {
                            "type": "string",
                            "description": "A URL pointing to a web site that provides more information on the given error condition."
                          },
                          "level": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING"
                            ],
                            "description": "The severity level of the message."
                          },
                          "parameters": {
                            "type": "object",
                            "description": "Additional properties reflecting the dynamic parts of the error condition."
                          },
                          "cause": {
                            "type": "object",
                            "description": "This property can be used to transport causing error message records produced by a down stream service call."
                          },
                          "locale": {
                            "type": "string",
                            "description": "This property represents the locale of the text contained in properties 'message', and 'description'. This property is mandatory if message and description contain translated text."
                          }
                        },
                        "required": [
                          "code",
                          "message"
                        ]
                      }
                    },
                    "requestId": {
                      "type": "string",
                      "description": "The ID of the failing request."
                    },
                    "service": {
                      "type": "string",
                      "description": "The name of the service serving the error message."
                    }
                  },
                  "required": [
                    "errors",
                    "requestId"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "A user with same externalID does already exist.",
            "content": {
              "application/json": {
                "schema": {
                  "description": "This JSON record represents an error condition.",
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "This JSON record represents an individual error or warning contained in an error message.",
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer",
                            "description": "An error code defined by the User Profile service."
                          },
                          "message": {
                            "type": "string",
                            "description": "A message describing what went wrong."
                          },
                          "description": {
                            "type": "string",
                            "description": "Further explanation of the error condition and potential next steps to resolve the problem."
                          },
                          "more_info": {
                            "type": "string",
                            "description": "A URL pointing to a web site that provides more information on the given error condition."
                          },
                          "level": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING"
                            ],
                            "description": "The severity level of the message."
                          },
                          "parameters": {
                            "type": "object",
                            "description": "Additional properties reflecting the dynamic parts of the error condition."
                          },
                          "cause": {
                            "type": "object",
                            "description": "This property can be used to transport causing error message records produced by a down stream service call."
                          },
                          "locale": {
                            "type": "string",
                            "description": "This property represents the locale of the text contained in properties 'message', and 'description'. This property is mandatory if message and description contain translated text."
                          }
                        },
                        "required": [
                          "code",
                          "message"
                        ]
                      }
                    },
                    "requestId": {
                      "type": "string",
                      "description": "The ID of the failing request."
                    },
                    "service": {
                      "type": "string",
                      "description": "The name of the service serving the error message."
                    }
                  },
                  "required": [
                    "errors",
                    "requestId"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests, the server has reached a limit, the request must be sent again at a later time.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "description": "This JSON record represents an error condition.",
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "description": "This JSON record represents an individual error or warning contained in an error message.",
              "type": "object",
              "properties": {
                "code": {
                  "type": "integer",
                  "description": "An error code"
                },
                "message": {
                  "type": "string",
                  "description": "A message describing what went wrong."
                },
                "description": {
                  "type": "string",
                  "description": "Further explanation of the error condition and potential next steps to resolve the problem."
                },
                "more_info": {
                  "type": "string",
                  "description": "A URL pointing to a web site that provides more information on the given error condition."
                },
                "level": {
                  "type": "string",
                  "enum": [
                    "ERROR",
                    "WARNING"
                  ],
                  "description": "The severity level of the message. Default is error."
                },
                "parameters": {
                  "type": "object",
                  "description": "Additional properties reflecting the dynamic parts of the error condition."
                },
                "cause": {
                  "type": "object",
                  "description": "This property can be used to transport causing error message records produced by a down stream service calls."
                },
                "locale": {
                  "type": "string",
                  "description": "This property represents the locale of the text contained in properties 'message', and 'description'. This property is mandatory if message and description contain translated text."
                }
              },
              "required": [
                "code",
                "message"
              ]
            }
          },
          "requestId": {
            "type": "string",
            "description": "The ID of the failing request."
          },
          "service": {
            "type": "string",
            "description": "The name of the service serving the error message."
          }
        },
        "required": [
          "errors",
          "requestId"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```