Hi,
I have created a MO via postman and sent measurements, events, etc… using my user creds.
Now I would like to send measurement using device credentials.However I am getting an Access denied.
Since I did not use the proper step by step approach for device registration, I am wondering if that could be the root cause (The MO was created before the reg).
Below are my steps:
- Created a new device request with unique id ABC
- Ask for deviceCreds
- Accept the device Request
- Ask for deviceCreds again and they are provided to me.
- Relate id ABC to the MO i created a few days ago
From there I use my device credentials in Postman:
- GET {{url}}/identity/externalIds/c8y_Serial/ABC : works
- GET {{url}}/inventory/managedObjects/{{Moid}}: works
- PUT {{url}}/inventory/managedObjects/{{Moid}}: access denied
- GET {{url}}/user/currentUser : works and i can see the device_ABC has all the necessary roles to READ/CREATE/ADMIN
Any idea what i m missing?
thanks