Description
Check for group membership in a Windows security group.
Syntax
returnvalue = RTI_IsMember(GroupName [,<UserName>] [,<DomainName>])
Parameters
The function has the following parameters:
| Parameter | Description |
|---|---|
| GroupName | Name of a windows security group to check for membership. |
| UserName | A windows username. If specified checks the if the username is a member of GroupName. If empty, the username of the current windows user is checked. |
| DomainName | The Active Directory domain to check. If not specified defaults to the current Active Directory domain. |
Returns
| Method | Return Value |
|---|---|
| TRUE$ | The user is a member of the group. |
| FALSE$ | The user is not a member of the group. |
Examples
* Is the current user a member of the Billing Users group?
DECLARE FUNCTION RTI_IsMember
isMember = RTI_IsMember("Billing Users")
If isMember Then
msg(@window, 'The user is a member of the group')
End Else
msg(@window, 'The user is a NOT member of the group')
End
* Check if a specific user is a member of the Billing Users group?
isMember = RTI_IsMember("Billing Users","JohnDoe")
If isMember Then
msg(@window, 'The user is a member of the group')
End Else
msg(@window, 'The user is a NOT member of the group')
End
Remarks
This is an undocumented function that appears in OpenInsight 9.4 and was discovered in this WORKS forum posting.