Permissions to create things pragmatically
Hello
I have a system user that needs to create pragmatically things based on template "MYTemplate"
I gave visibility and service exec permission to EntityServices->CreateThing
I gave permission to Create on "things collection"
the User has also visibility to all things based on MYTemplate (it is set visibility at template level)
That user can run the service CreateThing, no errors like serviceinvoke or not allowed to Create ... but I get the error JavaException: java.lang.NullPointerException: null at the CreateThing call.
NOTE that the thing was created however !
I solve only if I give to User the visibility permission to all the "things collection", seems the permission only on the template is not enough for creating things.
It seems like if for an instant the Service creates the thing, but he can't see it after all , because it still don't know that is based on the MYTemplate that instead makes it visible to that user.
Is the visibility to all things collection the only solution ?

