Skip to main content
1-Visitor
October 12, 2017
Solved

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

  • October 12, 2017
  • 3 replies
  • 1697 views

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

Best answer by posipova

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

3 replies

posipova20-TurquoiseAnswer
20-Turquoise
October 12, 2017

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

khayes11-VisitorAuthor
1-Visitor
October 13, 2017

Thanks, Polina

1-Visitor
October 16, 2017

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