cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Designing Permissions on Things Permissions

aseaton
12-Amethyst

Designing Permissions on Things Permissions

Hi Community,

 

I wish to design permissions on thing permissions programmatically:

 

Thing Permissions.PNG

Does anyone have any advice on how to achieve this?

 

Regards,

Andy

ACCEPTED SOLUTION

Accepted Solutions
mnarang
17-Peridot
(To:aseaton)

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.) - STRING
type - Permission type (PropertyRead PropertyWrite ServiceInvoke EventInvoke EventSubscribe) - STRING
principal - Principal name (name of user or group) - STRING
principalType - Principal type (User or Group) - STRING
allow - Permission (true = allow, false = deny) - BOOLEAN
Throws:
java.lang.Exception

you can find this service in thingworx snippet as attached 

 

 

View solution in original post

2 REPLIES 2
mnarang
17-Peridot
(To:aseaton)

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.) - STRING
type - Permission type (PropertyRead PropertyWrite ServiceInvoke EventInvoke EventSubscribe) - STRING
principal - Principal name (name of user or group) - STRING
principalType - Principal type (User or Group) - STRING
allow - Permission (true = allow, false = deny) - BOOLEAN
Throws:
java.lang.Exception

you can find this service in thingworx snippet as attached 

 

 

aseaton
12-Amethyst
(To:mnarang)

Perfect Answer - Appreciated.

 

Andy

Announcements


Top Tags