Designing Permissions on Things Permissions
May 16, 2018
03:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 16, 2018
03:01 AM
Designing Permissions on Things Permissions
Hi Community,
I wish to design permissions on thing permissions programmatically:
Does anyone have any advice on how to achieve this?
Regards,
Andy
Solved! Go to Solution.
Labels:
- Labels:
-
Best Practices
-
Design
-
Security
-
Troubleshooting
ACCEPTED SOLUTION
Accepted Solutions
May 16, 2018
04:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 16, 2018
04:37 AM
You can use AddCollectionDesignTimePermisson service for this use case .You can find more details of using this service in help center as well .
public void AddCollectionDesignTimePermission(java.lang.String collectionName, java.lang.String type, java.lang.String principal, java.lang.String principalType, java.lang.Boolean allow) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Add a design time permission.
- Parameters:
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGtype
- Permission type (PropertyRead PropertyWrite ServiceInvoke EventInvoke EventSubscribe) - STRINGprincipal
- Principal name (name of user or group) - STRINGprincipalType
- Principal type (User or Group) - STRINGallow
- Permission (true = allow, false = deny) - BOOLEAN- Throws:
java.lang.Exception
you can find this service in thingworx snippet as attached
2 REPLIES 2
May 16, 2018
04:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 16, 2018
04:37 AM
You can use AddCollectionDesignTimePermisson service for this use case .You can find more details of using this service in help center as well .
public void AddCollectionDesignTimePermission(java.lang.String collectionName, java.lang.String type, java.lang.String principal, java.lang.String principalType, java.lang.Boolean allow) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Add a design time permission.
- Parameters:
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGtype
- Permission type (PropertyRead PropertyWrite ServiceInvoke EventInvoke EventSubscribe) - STRINGprincipal
- Principal name (name of user or group) - STRINGprincipalType
- Principal type (User or Group) - STRINGallow
- Permission (true = allow, false = deny) - BOOLEAN- Throws:
java.lang.Exception
you can find this service in thingworx snippet as attached
May 16, 2018
04:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 16, 2018
04:52 AM
Perfect Answer - Appreciated.
Andy
