# Accidentaly changed main admin roles

**URL:** <https://forum.mautic.org/t/accidentaly-changed-main-admin-roles/25594>\
**Category:** Product Support\
**Tags:** mautic-3, mautic-4\
**Created:** [October 5, 2022, 5:27pm UTC](https://forum.mautic.org/t/accidentaly-changed-main-admin-roles/25594 "2022-10-05T17:27:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![evanon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/evanon/32/8123_2.png) [@evanon](https://forum.mautic.org/u/evanon)\
**Post date:** [October 5, 2022, 5:27pm UTC](https://forum.mautic.org/t/accidentaly-changed-main-admin-roles/25594/1 "2022-10-05T17:27:37Z")

</div>

**Your software**

**Your problem**  
My problem is:  
I,m using a self hosted Mautic version and accidentally changed the roles for the main admin(me) and now I cant access the admin roles. How can I reverse or update?

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [October 5, 2022, 5:43pm UTC](https://forum.mautic.org/t/accidentaly-changed-main-admin-roles/25594/2 "2022-10-05T17:43:55Z")

</div>

In Mautic database, look for table Users

In table Users, find the row with your user info

In your user row, change your “role\_id” to 1

---

<div class="post-metadata">

**Author:** ![evanon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/evanon/32/8123_2.png) [@evanon](https://forum.mautic.org/u/evanon)\
**Post date:** [October 6, 2022, 9:33am UTC](https://forum.mautic.org/t/accidentaly-changed-main-admin-roles/25594/3 "2022-10-06T09:33:03Z")

</div>

Thanks. This resolved it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [October 7, 2022, 9:33pm UTC](https://forum.mautic.org/t/accidentaly-changed-main-admin-roles/25594/4 "2022-10-07T21:33:40Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
