Security
  
Security
There is a very granular security model available within ThingWorx. There are two sets of permissions, one for design time and one for run time. The design time permissions are for managing who is allowed to modify the model (create, read, update, and delete entities), while the run time permissions determine who can access data, execute services, and trigger events on a thing (which includes data tables, streams, and users). Controls for security and permissions are located under the SECURITY section and menus in Composer (as of version 8.3).
For each permission, you can explicitly permit a User or Group to be able to do something (like edit a Thing) or explicitly deny a Group the ability to do something (e.g. the Users Group is not allowed to edit a Thing). You can apply permissions at the Group level and at the User level. An explicit denial of a privilege always overrides a privilege grant. It is also important to note that security checks default to not allow an operation. If no specific grant has been given to a user, then that operation will be denied.
The design time permissions are for standard CRUD operations (Create, Read, Update, Delete) on any entity. This controls the model definition and who can make changes to the model. These permissions can be applied to individual entities (Read, Update, or Delete a specific Thing, Thing Shape, Data Shape, etc.) or can be broadly applied to an entire entity collection (Create, Read, Update, or Delete Things, Thing Shapes, Data Shapes, etc.). If you apply permissions to the collection, you can override, add, or reduce those permissions at the individual entity level.
The run time permissions apply to all Entity aspects, such as Property Read, Property Write, Event Execute, and Service Execute. Run time permission overrides allow reduction of permissions for specific aspects, such as properties, services, or events.
You can set run time permissions at a Thing, Thing Template, or Collection level. A Collection is group of Things or Thing Templates and permissions on a Collection are inherited by all items in that collection. You can also set run time and design time permissions at the individual Thing Template level, and all Things derived from that Thing Template inherit those settings. All inherited permissions can be overridden at the individual Thing level.
The abstract entities within the model do not have run time permissions. These entities include Thing Shapes, Data Shapes, and Groups.
* 
Collections do not get written as expected if the corresponding users/groups do not exist BEFORE you Import From ThingworxStorage on the target server. To assure that the permissions import properly, you MUST create the users and groups in ThingWorx. Create an Export of your Users and Groups, import that, and then import the rest of your model.
* 
Collection level permissions (Things, Thing Templates, Logs, etc.) export or import ONLY when you export to ThingworxStorage or import from ThingworxStorage. If you import or export from file, the collection level permissions only apply on the Entity level.
How to set up ThingWorx Security Video.