I have a two legged auth infrastructure. My web server uses OAUTH credentials when creating customers within the product. When creating new devices it uses a particle access token for a master user who was already created within this product (this seems to be required as this endpoint doesn’t take OAUTH). The customer is then assigned the device. I can tell that this all happens correctly, by viewing the Particle console, where the customer’s ID is assigned to the device and the device is viewable within my Product.
Generally this has worked well, but for some reason right now my users cannot see their stream of events. They are using the stream API endpoint in the format of:
In this case I do not see any of the users’ events that I can see in the particle console.
If I use the form of:
I get an error: {“ok”:false,“error”:“Organization not found for user’s role.”}
If I use the form of:
Then I see the events…
Why can’t the user customer see his own events in this case with the first format I described above?
I’d be happy to give actual values to a Particle.io employee if it helps.