Solved
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
Hi Community,
I wish to design permissions on thing permissions programmatically:
Does anyone have any advice on how to achieve this?
Regards,
Andy
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
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) - BOOLEANjava.lang.Exceptionyou can find this service in thingworx snippet as attached
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.