# Importing users

**URL:** <https://meta.discourse.org/t/importing-users/299772>\
**Category:** Migration\
**Created:** [March 18, 2024, 7:57am UTC](https://meta.discourse.org/t/importing-users/299772 "2024-03-18T07:57:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Isambard](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@Isambard](https://meta.discourse.org/u/Isambard)\
**Post date:** [March 23, 2024, 2:58pm UTC](https://meta.discourse.org/t/importing-users/299772/3 "2024-03-23T14:58:29Z")

</div>

When I looked at the database table for users I saw:

`id | integer | | not null | nextval('users_id_seq'::regclass)`

So I think if the importation script doesn’t follow the sequence or reset the sequence higher, then you could get a duplicate key and fail.

Hopefully the importation script you use respects the sequence and doesn’t insert into the database ‘blindly’.

---

_[View the full topic](https://meta.discourse.org/t/importing-users/299772)._
