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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

User group permissions at once

akumar-10-11-12211
12-Amethyst

User group permissions at once

Hi,

 

In any services related to user permissions, how to add multiple inputs like multiple groups or multiple entities in single service at once. eg:

 

Things["ThingName"].AddRunTimePermission({
principal: "CM_Administrators_group" /* STRING */,    //here if I need to add multiple groups
allow: true /* BOOLEAN */,
resource: "*" /* STRING */,
type: "PropertyRead" /* STRING */,    //here if I need to add multiple types
principalType: "Group" /* STRING */
});

 

Regards,

Abhishek Kumar

1 REPLY 1

you can't, just Iterate over the group list and call the same service.

Announcements


Top Tags