Skip to main content
3-Newcomer
Nov 16, 2023 1:30 AM UTC
Solved

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

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 ?
17-Peridot
Nov 16, 2023 7:13 AM UTC

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
Nov 16, 2023 7:13 AM UTC

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

Translate