User isMemberOfSampleRule

From Catglobe Wiki
Jump to: navigation, search



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)