This would map the drive if they were a member of either group...
Code:
If InGroup("group1","group2")
Use V: "\\server\share"
Endif
This would map the drive if they were a member of both groups...
Code:
If InGroup("group1","group2",1)
Use V: "\\server\share"
Endif
Here is what the manual (that you should read before posting such questions) say....
Quote:
INGROUP
Action
Checks whether the current user is a member of one or more groups.
Syntax
INGROUP ("group name" [<,> "group name 2"], Mode)
Parameter
Group name1, group name 2, group name …
Identifies the group(s) in which to check the user's membership. Multiple group names may be passed as arguments. Alternatively, you may specify a single, one-dimensional, array of which the element(s) are the names of one or more groups to test.
Mode
Optional integer parameter indicating whether or not Ingroup checks for groupmembership of one or all groups in the list (default = 0). Possible values:
0 Ingroup checks for membership of ONE of the groups in the list (default).
1 Ingroup checks for membership of ALL of the groups in the list.