# Cannot set custom Default device identity attribute in UI

**URL:** https://hub.mender.io/t/cannot-set-custom-default-device-identity-attribute-in-ui/290
**Category:** General Discussions
**Tags:** intel-up-squared, sumo, identity
**Created:** [March 4, 2019, 5:51pm UTC](https://hub.mender.io/t/cannot-set-custom-default-device-identity-attribute-in-ui/290 "2019-03-04T17:51:12Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![dbensoussan](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dbensoussan/32/263_2.png) [@dbensoussan](https://hub.mender.io/u/dbensoussan)
#### Post date: [March 4, 2019, 5:51pm UTC](https://hub.mender.io/t/cannot-set-custom-default-device-identity-attribute-in-ui/290/1 "2019-03-04T17:51:12Z")

</div>

Hi,  
I am using mender 1.7.0 and have added my own Serial number in the device identity as you can see but I cannot set it up as default one. I followed [https://docs.mender.io/1.7/client-configuration/identity](https://docs.mender.io/1.7/client-configuration/identity)

 ![Screenshot_20190304_184753](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/6592e20f27e5e11db0d02776ca01e59a688f84f2.png)

![Screenshot_20190304_184823](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/bc27b7e26dd9fdc316a3bfa9109fc1da71d910c9.png)

Is there anything else to do?

Thanks

---

<div class="post-metadata">

### Author: ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)
#### Post date: [March 5, 2019, 9:22am UTC](https://hub.mender.io/t/cannot-set-custom-default-device-identity-attribute-in-ui/290/2 "2019-03-05T09:22:16Z")

</div>

@michaelatmender any input on this?

---

<div class="post-metadata">

### Author: ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)
#### Post date: [March 5, 2019, 9:52am UTC](https://hub.mender.io/t/cannot-set-custom-default-device-identity-attribute-in-ui/290/3 "2019-03-05T09:52:43Z")

</div>

@dbensoussan Thank you for pointing this one. Even we faced the same issue with mender demo server.  
The link you provided is only for Mender client. I believe, we need to modify the Mender server part to take the new identity on the UI. Currently, it set to only the Device ID (which server allocate) and MAC ID (only Ethernet MAC ID) from the UI perspective.

---

<div class="post-metadata">

### Author: ![michaelatmender](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/michaelatmender/32/128_2.png) [@michaelatmender](https://hub.mender.io/u/michaelatmender)
#### Post date: [March 5, 2019, 10:38am UTC](https://hub.mender.io/t/cannot-set-custom-default-device-identity-attribute-in-ui/290/4 "2019-03-05T10:38:47Z")

</div>

Yes, this is a known bug - poor implementation of the custom identity feature, really. There is a fix in master branch of the gui, but for now I think you can work around by making sure the test devices or virtual devices are decommissioned (not just removed, but decommissioned completely).

The problem appears when you have your first devices having only Device ID and mac, then add a device later with different id attributes. If all devices on the server have the Device ID, Serial Number and mac attributes, those should all show in the dropdown. If you have an old device that’s missing the Serial Number, it won’t be available in the dropdown.

---

<div class="post-metadata">

### Author: ![dbensoussan](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dbensoussan/32/263_2.png) [@dbensoussan](https://hub.mender.io/u/dbensoussan)
#### Post date: [March 5, 2019, 2:21pm UTC](https://hub.mender.io/t/cannot-set-custom-default-device-identity-attribute-in-ui/290/5 "2019-03-05T14:21:23Z")

</div>

Thanks for the answers.  
@michaelatmender I just tried switching to master and restart the containers but got the same results.  
There are 2 devices I wouldn’t like to decommission, would there be another workaround?

---

<div class="post-metadata">

### Author: ![michaelatmender](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/michaelatmender/32/128_2.png) [@michaelatmender](https://hub.mender.io/u/michaelatmender)
#### Post date: [March 5, 2019, 2:42pm UTC](https://hub.mender.io/t/cannot-set-custom-default-device-identity-attribute-in-ui/290/6 "2019-03-05T14:42:14Z")

</div>

@dbensoussan I don’t know of any other workaround. Here is the commit where the fix was introduced: [https://github.com/mendersoftware/gui/pull/418](https://github.com/mendersoftware/gui/pull/418)

Did you ensure the containers were definitely refreshed to latest master when they were restarted? I can’t immediately think of any other reason why the fix shouldn’t have reached you, I know I’ve been caught with stale containers in the past when switching between branches. We can try to reproduce in the meantime

---

<div class="post-metadata">

### Author: ![dbensoussan](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dbensoussan/32/263_2.png) [@dbensoussan](https://hub.mender.io/u/dbensoussan)
#### Post date: [March 5, 2019, 2:54pm UTC](https://hub.mender.io/t/cannot-set-custom-default-device-identity-attribute-in-ui/290/7 "2019-03-05T14:54:25Z")

</div>

@michaelatmender, you’re right. I used ./run down, then ./run up -d to start the containers.  
This doesn’t download latest master stage containers. I ran ./run pull to fetch latest master containers and it works perfectly now 🙂  
Thanks!

---

<div class="post-metadata">

### Author: ![michaelatmender](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/michaelatmender/32/128_2.png) [@michaelatmender](https://hub.mender.io/u/michaelatmender)
#### Post date: [March 5, 2019, 2:56pm UTC](https://hub.mender.io/t/cannot-set-custom-default-device-identity-attribute-in-ui/290/8 "2019-03-05T14:56:09Z")

</div>

@dbensoussan I’ve been there before a few times 😁 glad it’s now working for you!
