Providing Access to Device data to multiple users 04.12.2016 11:37 PM
HI All, I wanted to ask whether we can give access to multiple users to same device database. Suppose I have one M2X account having device data. Can i allow user having another M2X account, to access that data.
Re: Providing Access to Device data to multiple users 04.13.2016 10:09 AM
That is not yet possible, though we do have Team Management on the roadmap which would allow you to share devices/data with other accounts.
In the meantime, you could set the device visibility to "public" which allows you to share the device/data with others in a read-only fashion, ie. they would be able to make GET calls to the device via the API in order to get data. Note: setting device visibility to public would make the data publicly available to anyone.
Re: Providing Access to Device data to multiple users 04.13.2016 01:01 PM
You could also share the API key and ID for the resource (e.g. Device) you would like to share, which would provide access to the device - with whichever permissions you authorize (GET, POST, PUT and/or DELETE)
Re: Providing Access to Device data to multiple users 04.14.2016 07:06 AM
hey... first of all thanks for the reply :)
thr is a need of user authentication in my project.Is it possible with OAuth. I read that if third party is sending OAuth request than they will get bearer token in response. That bearer token in turn is
exchanged for master keys. I am aware of making different master keys and giving the required access. Is thr a way by which we can manipulate which master key is returned?
Re: Providing Access to Device data to multiple users 04.14.2016 10:48 AM
Currently, it is not possible to select which key to return after the OAuth negotiation. It is actually up the user to decide which permissions they are going to give your application and we create an ad-hoc master key which has only the selected permissions and can access all user's devices.
Notice that this doesn't solve the need for sharing devices you mentioned in your previous post. With this scenario, each user logged in to your application will have access only to the devices belongin to them.
Please confirm that you want to flag this content as inappropriate.
Please confirm that you want to delete this content.