# Accidently Deleted Administrator Role / New users do not work

**URL:** <https://forum.inductiveautomation.com/t/accidently-deleted-administrator-role-new-users-do-not-work/51071>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [September 17, 2021, 3:19pm UTC](https://forum.inductiveautomation.com/t/accidently-deleted-administrator-role-new-users-do-not-work/51071 "2021-09-17T15:19:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rrebro](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rrebro](https://forum.inductiveautomation.com/u/rrebro)\
**Post date:** [September 17, 2021, 3:19pm UTC](https://forum.inductiveautomation.com/t/accidently-deleted-administrator-role-new-users-do-not-work/51071/1 "2021-09-17T15:19:40Z")

</div>

So, I accidently deleted the Administrator Role from my user source and locked myself out of the Gateway Configuration. I used the command line to reset my password and I am able to log onto the gateway again but now any new user I add does not work. I add it and then if I try to login with it, it says the password is incorrect (in the designer it works).

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 17, 2021, 3:30pm UTC](https://forum.inductiveautomation.com/t/accidently-deleted-administrator-role-new-users-do-not-work/51071/2 "2021-09-17T15:30:12Z")

</div>

Since v8, unlocking via gwcmd doesn’t actually reset your password, but create a new user source with the new admin account, and gateway login is set to use it (the new user source).

Edit your old user source to fix your password there, then switch the gateway back to that user source.

You can delete the temporary user source at that point.

---

<div class="post-metadata">

**Author:** ![rrebro](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rrebro](https://forum.inductiveautomation.com/u/rrebro)\
**Post date:** [September 17, 2021, 3:42pm UTC](https://forum.inductiveautomation.com/t/accidently-deleted-administrator-role-new-users-do-not-work/51071/3 "2021-09-17T15:42:45Z")

</div>

This is what I am doing. My old source doesn’t work.

I don’t know what you mean by “switch the gateway back to that user source” aren’t this all viable user sources at the same time? As in I can log into a user from any of them?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 17, 2021, 3:45pm UTC](https://forum.inductiveautomation.com/t/accidently-deleted-administrator-role-new-users-do-not-work/51071/4 "2021-09-17T15:45:17Z")

</div>

No. Only one is usable for gateway web access, and each project uses a specific one.

User sources can have soft fallbacks, though, which allow allow failures in the primary source to be passed on to another.

---

<div class="post-metadata">

**Author:** ![rrebro](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rrebro](https://forum.inductiveautomation.com/u/rrebro)\
**Post date:** [September 17, 2021, 3:47pm UTC](https://forum.inductiveautomation.com/t/accidently-deleted-administrator-role-new-users-do-not-work/51071/5 "2021-09-17T15:47:56Z")

</div>

How can I change which one is used for the gateway access?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 17, 2021, 3:49pm UTC](https://forum.inductiveautomation.com/t/accidently-deleted-administrator-role-new-users-do-not-work/51071/6 "2021-09-17T15:49:52Z")

</div>

Go to Config =\> Security =\> General

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 17, 2021, 3:51pm UTC](https://forum.inductiveautomation.com/t/accidently-deleted-administrator-role-new-users-do-not-work/51071/7 "2021-09-17T15:51:05Z")

</div>

Make sure you have a working administrator account in the user source/identity provider before you switch to it.
