Skip to main content
3-Newcomer
November 16, 2023
Solved

how to use Resources["SecurityServices"].EvaluateRuntimePermission(params)

  • November 16, 2023
  • 1 reply
  • 815 views
let params = {
resource: '' /* STRING */,
name: '' /* STRING */,
permission: '' /* STRING */,
type: '' /* STRING */
};
 
// result: BOOLEAN
let result = Resources["SecurityServices"].EvaluateRuntimePermission(params);

I couldn't find any documentation for the parameters, Can someone tell me the meaning of each item in the params ?
Best answer by Sathishkumar_C

resource: '*' /* STRING */,
name: 'Entity Name' /* Ex. Test_Thing */,
permission: 'Permission Type' /* Ex. PropertyRead, PropertyWrite, ServiceInvoke */,
type: 'Type of Entity' /* Ex. Thing */

1 reply

17-Peridot
November 16, 2023

resource: '*' /* STRING */,
name: 'Entity Name' /* Ex. Test_Thing */,
permission: 'Permission Type' /* Ex. PropertyRead, PropertyWrite, ServiceInvoke */,
type: 'Type of Entity' /* Ex. Thing */