Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User isMemberOfSampleRule

From Catglobe Wiki



User_isMemberOfSampleRule

Returns whether a user is member of specified sample rule(*).

(*)A sample consists of several sample rules, which can be added based on users or groups

Syntax

User_isMemberOfSampleRule(userId, sampleRuleId)

Arguments

userId: a numeric expression. It is resource Id of user.

sampleRuleId: a numeric expression. It is the sample rule’s id.

Return type

bool

Example

User_isMemberOfSampleRule(userId, sampleRuleId)
//run on qas context
User_isMemberOfSampleRule(QAS_getCurrentQAS().UserResourceId, sampleRuleId)