it's the usage of group::member_p I am struggling with. So I guess it's a question of set user_id [ad_conn user_id] set cond [group::member_p [-user_id user-id] [-group_name groupA]
will this work ?
group::member_p -user_id $user_id -group_name $group_name
should work.