# Login name for machines during register

**URL:** https://discourse.crowdsec.net/t/login-name-for-machines-during-register/1434
**Category:** crowdsec
**Created:** [September 28, 2023, 4:50pm UTC](https://discourse.crowdsec.net/t/login-name-for-machines-during-register/1434 "2023-09-28T16:50:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dugravot6](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/dugravot6/32/673_2.png) [@dugravot6](https://discourse.crowdsec.net/u/dugravot6)
#### Post date: [September 28, 2023, 4:50pm UTC](https://discourse.crowdsec.net/t/login-name-for-machines-during-register/1434/1 "2023-09-28T16:50:19Z")

</div>

Hi all,  
I wonder if it is possible to tune name of machines when we play :  
cscli machines list  
the name is the login of local\_api\_credentials, which is seems to be generate during the register operation. I would like to be able to associate as the host name, instead of this uid …  
Thank you.  
Stephane.

---

<div class="post-metadata">

### Author: ![iiAmLoz](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/iiamloz/32/386_2.png) [@iiAmLoz](https://discourse.crowdsec.net/u/iiAmLoz)
#### Post date: [September 29, 2023, 9:11am UTC](https://discourse.crowdsec.net/t/login-name-for-machines-during-register/1434/2 "2023-09-29T09:11:12Z")

</div>

Depending on how you are registering / using your machines you can define a name [cscli machines add | CrowdSec](https://docs.crowdsec.net/docs/next/cscli/cscli_machines_add) when adding

---

<div class="post-metadata">

### Author: ![dugravot6](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/dugravot6/32/673_2.png) [@dugravot6](https://discourse.crowdsec.net/u/dugravot6)
#### Post date: [September 29, 2023, 10:01am UTC](https://discourse.crowdsec.net/t/login-name-for-machines-during-register/1434/3 "2023-09-29T10:01:05Z")

</div>

It does exactly what i want !  
just have to run add before on lapi, then the register is not necessary.  
Thank you !
