# 500 error while adding an user at the admin dashboard

**URL:** <https://discuss.openedx.org/t/500-error-while-adding-an-user-at-the-admin-dashboard/10535>\
**Category:** Introductions\
**Tags:** devstack, tutor\
**Created:** [June 27, 2023, 12:15pm UTC](https://discuss.openedx.org/t/500-error-while-adding-an-user-at-the-admin-dashboard/10535 "2023-06-27T12:15:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alishaik](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/alishaik/32/4876_2.png) [@alishaik](https://discuss.openedx.org/u/alishaik)\
**Post date:** [June 27, 2023, 12:15pm UTC](https://discuss.openedx.org/t/500-error-while-adding-an-user-at-the-admin-dashboard/10535/1 "2023-06-27T12:15:34Z")

</div>

Hi, I have trouble adding an user from the admin dashboard. After filling the details and saving it. The error page comes with 500 error.

 ![Screenshot (211)](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/d/de619a6c895eb555fe6e8e69dd4783ae0a2dac13.png)

---

<div class="post-metadata">

**Author:** ![jill](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jill/32/3188_2.png) [@jill](https://discuss.openedx.org/u/jill)\
**Post date:** [June 28, 2023, 12:11am UTC](https://discuss.openedx.org/t/500-error-while-adding-an-user-at-the-admin-dashboard/10535/2 "2023-06-28T00:11:57Z")

</div>

@alishaik Yeah… unfortunately that doesn’t work well… there’s data associate with a User that doesn’t get created in the Django Admin panel. New users should go through the registration process instead, or:

- If you’re using Tutor, you can create users from the shell: [Local deployment — Tutor documentation](https://docs.tutor.overhang.io/local.html#creating-a-new-user-with-staff-and-admin-rights)
- If you need to pre-enroll people in courses before they have accounts registered, you can do that using their emails in the Instructor Dashboard, or using the bulk enrollment APIs: [Programatically enroll or unenroll students](https://discuss.openedx.org/t/programatically-enroll-or-unenroll-students/4689/)

---

<div class="post-metadata">

**Author:** ![Yagnesh](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/yagnesh/32/9571_2.png) [@Yagnesh](https://discuss.openedx.org/u/Yagnesh)\
**Post date:** [June 28, 2023, 4:48am UTC](https://discuss.openedx.org/t/500-error-while-adding-an-user-at-the-admin-dashboard/10535/3 "2023-06-28T04:48:04Z")

</div>

To create a super user just hit this command in the terminal when u install tutor directory

> tutor local do createuser --staff --superuser -pedx edx [edx@example.com](mailto:edx@example.com)  
> password:edx  
> username:edx  
> email: [edx@example.com](mailto:edx@example.com)

---

<div class="post-metadata">

**Author:** ![alishaik](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/alishaik/32/4876_2.png) [@alishaik](https://discuss.openedx.org/u/alishaik)\
**Post date:** [June 28, 2023, 5:32am UTC](https://discuss.openedx.org/t/500-error-while-adding-an-user-at-the-admin-dashboard/10535/4 "2023-06-28T05:32:28Z")

</div>

Can’t I bulk register the users. Because I am able to only add one user at a time. Can we add multiple users at a time from the shell ?

---

<div class="post-metadata">

**Author:** ![alishaik](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/alishaik/32/4876_2.png) [@alishaik](https://discuss.openedx.org/u/alishaik)\
**Post date:** [June 28, 2023, 5:33am UTC](https://discuss.openedx.org/t/500-error-while-adding-an-user-at-the-admin-dashboard/10535/5 "2023-06-28T05:33:47Z")

</div>

thanks i only wanted to created students not staff only putting createuser command helped me adding the students.
