# Not able to claim device from commandline

**URL:** https://community.particle.io/t/not-able-to-claim-device-from-commandline/38963
**Category:** General
**Created:** [January 23, 2018, 5:15pm UTC](https://community.particle.io/t/not-able-to-claim-device-from-commandline/38963 "2018-01-23T17:15:46Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![privatejava](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/privatejava/32/11605_2.png) [@privatejava](https://community.particle.io/u/privatejava)
#### Post date: [January 23, 2018, 5:15pm UTC](https://community.particle.io/t/not-able-to-claim-device-from-commandline/38963/1 "2018-01-23T17:15:46Z")

</div>

Hi,  
I have been trying to claim a device . I have few customers inside of product i am logged in from the customer username and password using **particle-cli**. When i try to add device by using

`particle device add 37xxxxxxxxxxxxxxxxxxxx`

It gives me error:  
`Failed to claim device, server said: user not found`

It is same with the Particle Cloud API too. I tried using URI “[https://api.particle.io/v1/devices](https://api.particle.io/v1/devices)” with parameters “id” and "access\_token"  
but same result.

Thanks  
narayan

---

<div class="post-metadata">

### Author: ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)
#### Post date: [January 23, 2018, 5:22pm UTC](https://community.particle.io/t/not-able-to-claim-device-from-commandline/38963/2 "2018-01-23T17:22:04Z")

</div>

@privatejava, have you a) got the latest Particle CLI (v1.27.1) and b) logged in to the CLI with `particle login`?

If yes to both, log out and then back in again to see if it works.

---

<div class="post-metadata">

### Author: ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)
#### Post date: [January 23, 2018, 5:45pm UTC](https://community.particle.io/t/not-able-to-claim-device-from-commandline/38963/3 "2018-01-23T17:45:59Z")

</div>

Is this for a Photon/P1? That’s not how you normally claim customer devices. Normally you create a customer, or create a customer access bearer token if the customer already exists. You then use this token to create a product claim code for the device. Then you use the claim code to claim the device, on the Photon/P1.

It’s the second half of this document if you want to walk through the process manually to get a better feel of how it works:

> **[rickkas7/particle\_notes](https://github.com/rickkas7/particle_notes/tree/master/manual-photon-claiming)**
>
> particle\_notes - Misc. mostly technical notes for Particle Photon and Electron devices

---

<div class="post-metadata">

### Author: ![privatejava](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/privatejava/32/11605_2.png) [@privatejava](https://community.particle.io/u/privatejava)
#### Post date: [January 23, 2018, 6:58pm UTC](https://community.particle.io/t/not-able-to-claim-device-from-commandline/38963/4 "2018-01-23T18:58:41Z")

</div>

I updated my particl cli to v.1.21.1 and logged in with customer credential and it still shows the same error.

![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/4/3/437a45671973dbb342075d325de854d8d77cce58.png)

---

<div class="post-metadata">

### Author: ![privatejava](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/privatejava/32/11605_2.png) [@privatejava](https://community.particle.io/u/privatejava)
#### Post date: [January 23, 2018, 6:59pm UTC](https://community.particle.io/t/not-able-to-claim-device-from-commandline/38963/5 "2018-01-23T18:59:45Z")

</div>

It is particle electron and i have been claiming the same device past few months but all of sudden it is not working so i am worried and wanted to know if there has been any changes on the particle end.

---

<div class="post-metadata">

### Author: ![Postler](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/postler/32/13693_2.png) [@Postler](https://community.particle.io/u/Postler)
#### Post date: [January 23, 2018, 7:19pm UTC](https://community.particle.io/t/not-able-to-claim-device-from-commandline/38963/6 "2018-01-23T19:19:00Z")

</div>

The CLI responds with “user not found” after successfully confirmed login.  
Please test whether other CLI commands can be executed successfully (eg `particle list`) or also lead to an error message. This can be used to narrow down whether your user account has a problem in general or your Electron as a single device.

---

<div class="post-metadata">

### Author: ![privatejava](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/privatejava/32/11605_2.png) [@privatejava](https://community.particle.io/u/privatejava)
#### Post date: [January 23, 2018, 9:07pm UTC](https://community.particle.io/t/not-able-to-claim-device-from-commandline/38963/7 "2018-01-23T21:07:04Z")

</div>

Listing of devices command works well without any problem.  
 ![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/0/f/0fbdb0cad58200f18d0587a5ee43686d05ccda3d.png)

---

<div class="post-metadata">

### Author: ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)
#### Post date: [January 24, 2018, 5:23pm UTC](https://community.particle.io/t/not-able-to-claim-device-from-commandline/38963/8 "2018-01-24T17:23:53Z")

</div>

There was a problem using the device claim endpoint with a customer account. A fix was deployed and it should work properly now.

---

<div class="post-metadata">

### Author: ![privatejava](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/privatejava/32/11605_2.png) [@privatejava](https://community.particle.io/u/privatejava)
#### Post date: [January 24, 2018, 6:15pm UTC](https://community.particle.io/t/not-able-to-claim-device-from-commandline/38963/9 "2018-01-24T18:15:46Z")

</div>

It worked perfectly !! Thanks you for quick deployment 🙂
