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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Cn we add more than one runtime permission type at a time

khayes1
13-Aquamarine

Cn we add more than one runtime permission type at a time

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

1 ACCEPTED SOLUTION

Accepted Solutions
posipova
20-Turquoise
(To:khayes1)

Not possible with OOTB but might be a good candidate for an enhancement request.

View solution in original post

3 REPLIES 3
posipova
20-Turquoise
(To:khayes1)

Not possible with OOTB but might be a good candidate for an enhancement request.

khayes1
13-Aquamarine
(To:posipova)

Thanks, Polina

Not OOTB, but easily you can build your own Helper Thing with a service that does it.

Top Tags