Skip to main content
1-Visitor
September 14, 2017
Solved

What is the "permissionTarget" parameter in GetEntityListWithPermissionMask() service?

  • September 14, 2017
  • 1 reply
  • 1251 views

I'm trying to determine a list of visible things for a particular user. Thanks for your help!

var tags = "vocabulary:tag";

var params = {

     permissionType: "PropertyRead" /* STRING */,

     maxItems: undefined /* NUMBER */,

     nameMask: undefined /* STRING */,

     permissionTarget: "William.Shatner" /* STRING */,

     type: "Thing" /* STRING */,

     tags: tags /* TAGS */

};

// result: INFOTABLE dataShape: RootEntityList

var result = Resources["EntityServices"].GetEntityListWithPermissionMask(params);

Best answer by smanley

Hello,

The permissionTarget will be the name of the service or property that the permission has been set for.

1 reply

smanley5-Regular MemberAnswer
5-Regular Member
September 14, 2017

Hello,

The permissionTarget will be the name of the service or property that the permission has been set for.