# HiveMQ Edge: How to add login in conf.xml?

**URL:** <https://community.hivemq.com/t/hivemq-edge-how-to-add-login-in-conf-xml/2991>\
**Category:** Uncategorized\
**Created:** [June 14, 2024, 10:05am UTC](https://community.hivemq.com/t/hivemq-edge-how-to-add-login-in-conf-xml/2991 "2024-06-14T10:05:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berrrt](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@Berrrt](https://community.hivemq.com/u/Berrrt)\
**Post date:** [June 14, 2024, 10:05am UTC](https://community.hivemq.com/t/hivemq-edge-how-to-add-login-in-conf-xml/2991/1 "2024-06-14T10:05:06Z")

</div>

In HiveMQ Edge, I’m trying to change the default login (admin/hivemq) for the control center by adding this section to the conf.xml:

> 

```
    <control-center> ...
    <users>
        <user>
            <name>yourUserName</name>
            <password>yourPassword</password>
        </user>
    </users>
    ...
</control-center>

```

I keep getting the error:  
Not able to parse configuration file because of the following errors:  
- XML schema violation in line ‘5’ and column ‘21’ caused by: “cvc-complex-type.2.4.a: Invalid content was found starting with element ‘control-center’. One of ‘{mqtt-listeners, mqtt-sn-listeners, mqtt, mqtt-sn, restrictions, security, mqtt-bridges, admin-api, persistence, protocol-adapters, modules, uns, dynamic-configuration, usage-tracking, internal}’ is expected.”

What am I missing? Do I need to update the XML schema for this? It isn’t described in the manual…

---

<div class="post-metadata">

**Author:** ![Daria\_H](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Daria\_H](https://community.hivemq.com/u/Daria_H)\
**Post date:** [June 14, 2024, 11:40am UTC](https://community.hivemq.com/t/hivemq-edge-how-to-add-login-in-conf-xml/2991/2 "2024-06-14T11:40:33Z")

</div>

Hi @Berrrt,

A warm welcome to the HiveMQ Community! We’re delighted that you’re interested in MQTT and the HiveMQ broker. Your presence brings us great joy.

Could you please share the link to the documentation you are following to configure this?

In HiveMQ Edge, to add, remove, or modify the users who are allowed access to the API and user interface, edit the `users` element in your `config.xml` file. You can find an [example](https://docs.hivemq.com/hivemq-edge/api-configuration.html#hivemq-edge-api-token-requirement:~:text=config.xml%20file.-,Changing%20API%20Users,-%3C%3Fxml%20version%3D%221.0) in the HiveMQ Edge documentation [here](https://docs.hivemq.com/hivemq-edge/api-configuration.html#hivemq-edge-api-token-requirement).

Here is a example for reference:

```auto
<hivemq ...>

...
    <admin-api>
        ...
        <users>
            <user>
                <username>admin</username>
                <password>hivemq</password>
                <roles>
                    <role>admin</role>
                </roles>
            </user>
            <user>
                <username>admin2</username>
                <password>hivemq</password>
                <roles>
                    <role>admin</role>
                </roles>
            </user>
            ...
        </users>
    </admin-api>
...
</hivemq>

```

If you need any further assistance, feel free to ask. We’re here to help!

Best regards,  
Dasha from the HiveMQ Team

---

<div class="post-metadata">

**Author:** ![Berrrt](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@Berrrt](https://community.hivemq.com/u/Berrrt)\
**Post date:** [June 14, 2024, 11:57am UTC](https://community.hivemq.com/t/hivemq-edge-how-to-add-login-in-conf-xml/2991/3 "2024-06-14T11:57:47Z")

</div>

Thanks!  
Is there no way to save the password as an SHA256 Password?

---

<div class="post-metadata">

**Author:** ![Daria\_H](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Daria\_H](https://community.hivemq.com/u/Daria_H)\
**Post date:** [June 14, 2024, 2:07pm UTC](https://community.hivemq.com/t/hivemq-edge-how-to-add-login-in-conf-xml/2991/4 "2024-06-14T14:07:57Z")

</div>

Hi @Berrrt,

Thank you for reaching out. Currently, there isn’t a way to save the password as an SHA256 password. We appreciate your suggestion for this feature and encourage you to submit it.

You can do so by visiting [https://github.com/hivemq/hivemq-edge/issues](https://github.com/hivemq/hivemq-edge/issues/new/choose) and selecting **Feature Request**.

Best regards,  
Dasha from the HiveMQ Team
