# Method to share Spark Core with multiple users?

**URL:** <https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350>\
**Category:** General\
**Created:** [March 1, 2015, 6:48pm UTC](https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350 "2015-03-01T18:48:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nachtritter](https://avatars.discourse-cdn.com/v4/letter/n/439d5e/32.png) [@nachtritter](https://community.particle.io/u/nachtritter)\
**Post date:** [March 1, 2015, 6:48pm UTC](https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350/1 "2015-03-01T18:48:57Z")

</div>

Hi,

Did not see any topics or documentation related to this…

Is there a way that multiple users (multiple logins) can share a single Core? The use case I have is for a Core-based IoT device used within the home, where multiple users (Mom, Dad, Kid 1, etc) want to connect to, control, and view the status of the IoT device, using their own credentials to do so.

Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [March 1, 2015, 6:55pm UTC](https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350/2 "2015-03-01T18:55:49Z")

</div>

You could have one “master account”, and then several “user accounts”. The master account is the one who actually owns the Core. You could then make multiple accesstokens, and assign them to your users. That’d require your application to do the user management though. I believe there are plans for making situations like this easier in the future.  
Perhaps @Dave can comment on this?

---

<div class="post-metadata">

**Author:** ![nachtritter](https://avatars.discourse-cdn.com/v4/letter/n/439d5e/32.png) [@nachtritter](https://community.particle.io/u/nachtritter)\
**Post date:** [March 3, 2015, 9:09am UTC](https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350/3 "2015-03-03T09:09:23Z")

</div>

I had a feeling that might be the case… that my application would need to manage the multiple users. Would be great if it could be made easier in the future… I suspect the use case would become relatively common.

Thanks for the response!

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dave/32/181_2.png) [@Dave](https://community.particle.io/u/Dave)\
**Post date:** [March 9, 2015, 3:10am UTC](https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350/4 "2015-03-09T03:10:52Z")

</div>

Hi @nachtritter,

Interesting idea! One approach we had for this was accessTokens with different permissions levels, so your one user could create several tokens, two with full control, and one with limited (read-only) control, etc. We’re hoping to extend access tokens with these properties in the coming months. 🙂

I hope that helps!

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![mebrunet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mebrunet/32/5343_2.png) [@mebrunet](https://community.particle.io/u/mebrunet)\
**Post date:** [June 19, 2015, 6:25pm UTC](https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350/5 "2015-06-19T18:25:35Z")

</div>

This would be great. It would be especially interesting if a “master user” could create tokens that had access to a sub-set of the cores on their account. That would make bootstrapping a multi-user product/application super easy.

---

<div class="post-metadata">

**Author:** ![yoohsiu](https://avatars.discourse-cdn.com/v4/letter/y/58956e/32.png) [@yoohsiu](https://community.particle.io/u/yoohsiu)\
**Post date:** [April 10, 2017, 4:46pm UTC](https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350/6 "2017-04-10T16:46:42Z")

</div>

Hi Dave, I searched for “create user Particle” and the most relevant results seems to be this one: [https://docs.particle.io/reference/javascript/#create-user](https://docs.particle.io/reference/javascript/#create-user)

That requires having the Javascript SDK though. Is there another method? Thanks!

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dave/32/181_2.png) [@Dave](https://community.particle.io/u/Dave)\
**Post date:** [April 10, 2017, 5:15pm UTC](https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350/7 "2017-04-10T17:15:28Z")

</div>

Hi @yoohsiu,

It sounds like you’re asking what API endpoint to hit when registering a new user:

That SDK is just sending a post request to /v1/users with the username / password, so you can do that from anything that can send a web request.

> <https://github.com/particle-iot/particle-api-js/blob/master/src/Particle.js>

I hope that helps!

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![yoohsiu](https://avatars.discourse-cdn.com/v4/letter/y/58956e/32.png) [@yoohsiu](https://community.particle.io/u/yoohsiu)\
**Post date:** [April 10, 2017, 8:07pm UTC](https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350/8 "2017-04-10T20:07:48Z")

</div>

Thanks! I was clicking through the Particle console and found the “product” option. What is the different between adding a “user” via the method above, vs creating a product and then adding a “team member”? Do both get access to edit code?

Thank you,  
Yoo-Yoo

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dave/32/181_2.png) [@Dave](https://community.particle.io/u/Dave)\
**Post date:** [April 10, 2017, 8:21pm UTC](https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350/9 "2017-04-10T20:21:14Z")

</div>

Hi @yoohsiu,

Good question! A Team Member has access to a product as a product creator. They can add firmware, change settings, import devices, etc. Right now only a single “end-user” can claim a device, but many product-creators can manage a product.

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![yoohsiu](https://avatars.discourse-cdn.com/v4/letter/y/58956e/32.png) [@yoohsiu](https://community.particle.io/u/yoohsiu)\
**Post date:** [April 10, 2017, 9:32pm UTC](https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350/10 "2017-04-10T21:32:46Z")

</div>

Cool thanks! - sounds like I want to use the team feature. I added a team member, but he can’t see my code. Is there a way to share the code directly, and not just the binary?

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [April 10, 2017, 9:41pm UTC](https://community.particle.io/t/method-to-share-spark-core-with-multiple-users/10350/11 "2017-04-10T21:41:16Z")

</div>

Sharing like that isn’t implemented, though you can use the new snapshot feature.  
Alternatively, setup Dev and use something like GitHub/dropbox to sync your files?
