3 Replies Latest reply on Oct 16, 2017 4:04 AM by carlesc RSS
    khayes Apprentice

    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