# Admin account not being created

**URL:** <https://forum.mattermost.com/t/admin-account-not-being-created/8127>\
**Category:** Troubleshooting\
**Created:** [September 17, 2019, 6:57am UTC](https://forum.mattermost.com/t/admin-account-not-being-created/8127 "2019-09-17T06:57:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnicol](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/gnicol/32/3223_2.png) [@gnicol](https://forum.mattermost.com/u/gnicol)\
**Post date:** [September 17, 2019, 6:57am UTC](https://forum.mattermost.com/t/admin-account-not-being-created/8127/1 "2019-09-17T06:57:36Z")

</div>

I’ve read and rearead the install documentation 20 times now and I just can’t get past this.

I have followed the instructions to the letter and I am still stuck.

When I login to Mattermost via my web browser the first time it asks me to register, which I do, but then the user is not given admin privileges (as the documentation says it will).

When I login I get the message:

No teams are available to join. Please ask your administrator for an invite.

I have tried using the CLI to give my user admin privileges and I have tried manually creating a new team but I am getting nowhere.

Why would my initial user not be getting admin privileges?

---

<div class="post-metadata">

**Author:** ![ahmaddanial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/ahmaddanial/32/2938_2.png) [@ahmaddanial](https://forum.mattermost.com/u/ahmaddanial)\
**Post date:** [September 23, 2019, 3:27am UTC](https://forum.mattermost.com/t/admin-account-not-being-created/8127/2 "2019-09-23T03:27:44Z")

</div>

Hi, @gnicol

Allow me to help you out with this. First things first, can you please share the specific documentation guide you referred to when installing Mattermost on your end? Perhaps you can also share a little bit more on the environment that you are deploying the Mattermost server too.

Additionally, I would also be interested to see the data structure of the first user created. Can you please run the SQL query and provide me with the result:

```auto
SELECT Id, Username, Email, Roles FROM Users WHERE Email = "<email>";

```

The specific column that we will be interested to look at would be **Roles** where it should tie to the following value:

```auto
Roles: system_admin system_user

```

Keep me posted soon.
