# Create User external\_ids parameter

**URL:** <https://meta.discourse.org/t/create-user-external-ids-parameter/286072>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [November 20, 2023, 1:09pm UTC](https://meta.discourse.org/t/create-user-external-ids-parameter/286072 "2023-11-20T13:09:04Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Khaldoun\_Noureddine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/khaldoun_noureddine/32/342568_2.png) [@Khaldoun\_Noureddine](https://meta.discourse.org/u/Khaldoun_Noureddine)\
**Post date:** [November 20, 2023, 1:09pm UTC](https://meta.discourse.org/t/create-user-external-ids-parameter/286072/1 "2023-11-20T13:09:04Z")

</div>

I am trying to write a function to import all existing users from our external site (3rd party i am only making the middleware) and i am trying to the [createUser](https://docs.discourse.org/#tag/Users/operation/createUser) function. It works fine, except for the `external_ids` parameter. No matter what i send in it (i tried arrays, objects.. you name it) the external id is not saved but the user is created. No errors.

Is there any specific format for the `external_ids` object?

I saw the sso\_sync solution but i would rather not go down that path, especially that the `external_ids` param is included in the API.

Any tips? Thank you in advance

---

_[View the full topic](https://meta.discourse.org/t/create-user-external-ids-parameter/286072)._
