# User management settings changed in Mender 2.4.0b?

**URL:** <https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082>\
**Category:** General Discussions\
**Created:** [June 20, 2020, 1:54am UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082 "2020-06-20T01:54:50Z")\
**Posts on this page:** 15\
**Page:** 3

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [July 24, 2020, 6:55am UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/44 "2020-07-24T06:55:56Z")

</div>

Not sure… The UI is not my specialty, so I will refer this to @mzedel. He’s out of office right now, but I hope he will answer soon.

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [July 24, 2020, 7:14am UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/45 "2020-07-24T07:14:52Z")

</div>

Hi @kacf,

This looks interesting, If u say it works for you, then I would like to go ahead and upgrade to 2.4.0, But Im lil afraid to do it now, We have a major deploymenxt in next 10 days and Also I dnt want to be in 2.4.0b (beta version rgt),

So please advice me should I upgrade (any risk involved), I have data, I dont wana lose it now. Guide me to a proper upgrade. I have seen the doc where it is upgraded, but just want ur professional advice too

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [July 24, 2020, 7:52am UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/46 "2020-07-24T07:52:36Z")

</div>

My advice would be: If you are on 2.4.0b1, then it is safe to upgrade to 2.4.0, and I recommend it. If you are on 2.3.1 or earlier, then I would wait until you have a calm period, just in case there are some migration problems.

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [July 24, 2020, 7:56am UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/47 "2020-07-24T07:56:08Z")

</div>

Sure then, I guess I have to upgrade, But tell me one thing, Just to confirm, the Mender client are connect to this server using a server.crt, When I upgrade, it wont be disturbed rgt? It will still be connected to this server unless I change the server certificate or the DNS name?? Isn’t it, Just want to make sure if nothing will be disturbed?

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [July 24, 2020, 7:57am UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/48 "2020-07-24T07:57:31Z")

</div>

Please tell me how to upgrade, Just follow that guide  
[https://docs.mender.io/2.4/administration/upgrading](https://docs.mender.io/2.4/administration/upgrading) – This doc rgt? for 2.4.0 Upgrade

Should I back up data using Mender documentationn?

---

<div class="post-metadata">

**Author:** ![mzedel](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mzedel/32/261_2.png) [@mzedel](https://hub.mender.io/u/mzedel)\
**Post date:** [August 4, 2020, 8:01am UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/49 "2020-08-04T08:01:32Z")

</div>

@genedupre the 2.4.0 image (mendersoftware/gui:mender-2.4.0) has the fix in - however only the latest `master` image (as in: built yesterday afternoon) has it, due to some additions that didn’t make it into 2.4 and prevented us from applying the same change…  
If you are still not seeing the settings make sure none of the `HAVE_MULTITENANT`, `HAVE_ENTERPRISE` or `MENDER_HOSTED` env vars are set on the gui container - as they all would indicate RBAC availability and a user role would get priority.  
I hope that helps!

@nishad1092 that link is correct and although backing up data might not be required it is recommended and especially if there is any data you don’t want to lose it is better to be safe than sorry IMHO

---

<div class="post-metadata">

**Author:** ![genedupre](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/genedupre/32/289_2.png) [@genedupre](https://hub.mender.io/u/genedupre)\
**Post date:** [August 7, 2020, 8:06am UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/50 "2020-08-07T08:06:40Z")

</div>

Hi @mzedel,  
can confirm everything is working as intended with the master git from 2020-08-06  
Gene

---

<div class="post-metadata">

**Author:** ![ColinFinck](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/colinfinck/32/2172_2.png) [@ColinFinck](https://hub.mender.io/u/ColinFinck)\
**Post date:** [October 8, 2020, 3:13pm UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/51 "2020-10-08T15:13:35Z")

</div>

Hi @mzedel,  
Thanks for helping with the MEN-3968 bug I was experiencing after upgrading from Mender 2.2.0 to 2.5.0.

Unfortunately, I just noticed that I’m also affected by the bug discussed here.  
Even though we are talking about the 2.5.0 release (and not 2.4.0), I’m missing the “User management” button since the upgrade from 2.2.0. The other Mender instance on 2.2.0 still has it.

I already pulled the very latest `mendersoftware/gui:mender-2.5.0` image and checked the environment variables of the running container to verify that neither of `HAVE_MULTITENANT`, `HAVE_ENTERPRISE`, and `MENDER_HOSTED` are set.  
Unfortunately, the problem still persists.

Any idea what’s going wrong here or what I could try?  
Was the fix accidentally removed from the 2.5.0 GUI?

Thanks a lot!

Colin

---

<div class="post-metadata">

**Author:** ![Thomas\_Love](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/thomas_love/32/487_2.png) [@Thomas\_Love](https://hub.mender.io/u/Thomas_Love)\
**Post date:** [March 3, 2021, 4:52pm UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/52 "2021-03-03T16:52:22Z")

</div>

I’m encountering the same issue on the 2.5.0 GUI, the User Management button is absent. I’m also unable to add new user accounts through CLI:

```
./run exec mender-useradm /usr/bin/useradm create-user --username=sample@example.com --password=temporaryPassword
creating user failed: useradm: failed to create user in the db: (IndexOptionsConflict) Index with name: email_1 already exists with a different name

```

obviously, using a real email address in the actual arguments. The email address being provided for username is unique, and has never been used before.

EDIT: I’ve attempted to create a user through API calls to useradm. While I am able to GET the users list and user info, trying to POST a new user fails with code 500 Internal Server Error:

```
{
    "error": "internal error",
    "request_id": "e5243e2d-8f14-401b-8f76-09d7ec87b2d2"
}

```

This API failure doesn’t appear to be a permissions issue on the surface, as both GET /users and POST /users are stated to require ManagementJWT in the documentation, I’m able to GET /users without issue. Is this a role issue on some deeper level with the Enterprise split?

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [March 3, 2021, 6:04pm UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/53 "2021-03-03T18:04:54Z")

</div>

Hi @Thomas_Love I cannot replicate this. I launched a 2.5.0 on-prem production setup and was able to create the user with the mender-useradm command. This is not a generic problem at least.

@peter any ideas?

---

<div class="post-metadata">

**Author:** ![Thomas\_Love](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/thomas_love/32/487_2.png) [@Thomas\_Love](https://hub.mender.io/u/Thomas_Love)\
**Post date:** [March 3, 2021, 9:30pm UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/54 "2021-03-03T21:30:16Z")

</div>

Do you have a User Management button in the webGUI on that 2.5.0 setup?

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [March 3, 2021, 10:01pm UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/55 "2021-03-03T22:01:51Z")

</div>

No. That may be a result of the Enterprise split since that is the primary interface for the Multitenancy feature that is only in that paln. But the creation of the login user with `/usr/bin/useradm` still works for me. @tranchitella may also have some input here.

---

<div class="post-metadata">

**Author:** ![tranchitella](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/tranchitella/32/606_2.png) [@tranchitella](https://hub.mender.io/u/tranchitella)\
**Post date:** [March 4, 2021, 4:54am UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/56 "2021-03-04T04:54:01Z")

</div>

@Thomas_Love this is a bug caused by the upgrade of old installations to Mender 2.5. Can you please try connecting to the useradm database in mongodb and remove any index on the users collection containing the “email” field?

---

<div class="post-metadata">

**Author:** ![Thomas\_Love](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/thomas_love/32/487_2.png) [@Thomas\_Love](https://hub.mender.io/u/Thomas_Love)\
**Post date:** [March 12, 2021, 8:53pm UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/57 "2021-03-12T20:53:09Z")

</div>

Hi @tranchitella thank you for the insight. What do you recommend as a command to mongodb to remove that field without affecting the rest of the user data? I’m not too experienced with mongodb conventions.

---

<div class="post-metadata">

**Author:** ![tranchitella](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/tranchitella/32/606_2.png) [@tranchitella](https://hub.mender.io/u/tranchitella)\
**Post date:** [March 13, 2021, 4:53am UTC](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082/58 "2021-03-13T04:53:15Z")

</div>

@Thomas_Love

something like:

> use useradm  
> db.users.getIndexes()  
> db.dropIndex(“name\_of\_the\_index”)

Where name\_of\_the\_index is the name of the index on the email field you can see from the getIndexes output.

[Previous page](https://hub.mender.io/t/user-management-settings-changed-in-mender-2-4-0b/2082.md?page=2)
