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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

I have question about set permissions

CHASEONHO
18-Opal

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

4 REPLIES 4
ankigupta
5-Regular Member
(To:CHASEONHO)

Definition of AddDesignTimePermission

And please check SetEntityPermission details:

I hope it helps.

thank Ankit Gupta

i'll try with this detail parameter

and i hope too, i should solve this issue

but.. can i get detail parameters :permission ? //infotable

thanks

ankigupta
5-Regular Member
(To:CHASEONHO)

Hi seonho Cha​,

You can use Permissions DataShape for defining the Permission InfoTable.

Hi Ankit Gupta

could you help me more detail please?

i want make service that set permission each users

so i must know parameter values

thanks

Top Tags