4 Replies Latest reply on Jun 6, 2017 8:24 PM by scha-2 RSS
    scha-2 Apprentice

    I have question about set permissions

    Hi , i have question about set permission

    i want make some page that set or delete permissions each users

    so i checked snippet and Thing's service then i found that

    but i don't know how to set parameter

    first SetThingpermission snippet's params

     

     

    var params = {

      entityName: undefined /* STRING */,

      entityType: undefined /* STRING */,

      permissions: undefined /* INFOTABLE */,

      query: undefined /* QUERY */

    };

     

    entity name is thing ?

    and what's the value into permissions?

     

    Second AddDesignPermission that thing service

     

     

    var params = {

      principal: undefined /* STRING */,

      allow: undefined /* BOOLEAN */,

      type: undefined /* STRING */,

      principalType: undefined /* STRING */

    };

     

     

    // no return

    Things["AAA"].AddDesignTimePermission(params);

    what's the value into principal and type and principalType ?

     

    Thanks