Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hi,
anyone know if we can group permissions together when using the service AddRuntimePermission().
I would like to grant permission for PropertyRead, PropertyWrite and ServiceInvoke. Is there some way to group them so that I only have to call the service once.
e.g.
var runtimeParams = {
principal: me.AdminTeamName /* STRING */,
allow: true /* BOOLEAN */,
resource: "*" /* STRING */,
type: "PropertyRead, ServiceInvoke" /* STRING */,
principalType: "Group" /* STRING */
};
Things[newThingName].AddRunTimePermission(runtimeParams);
I have tried the above, but obviously it doesn't work (or I wouldn't be here )
Thanks
Solved! Go to Solution.
Not possible with OOTB but might be a good candidate for an enhancement request.
Not possible with OOTB but might be a good candidate for an enhancement request.
Thanks, Polina
Not OOTB, but easily you can build your own Helper Thing with a service that does it.