mDashStore and CUSTOMER_ID



I’m currently using the client API mDashStore() along with the CUSTOMER_ID argument in my data_write ACL.

In the docs, it states the following:
CUSTOMER_ID is substituted with an actual customer ID a calling device belongs to

That in mind, a question:
If the device initiating mDashStore belongs to multiple customers, what CUSTOMER_ID value is written to the database?

This is a common situation in my application where multiple customers have access to an individual device (e.g. a corporate admin overseeing all devices and a store manager who only sees his device).



The first customer that is found - that means, it is random.

To be precisely correct, a customer with the first customer ID, if ordered alphabetically, wins.


Hmm… random will make things challenging.

Thanks for the answer nonetheless.