Why not use @PRIMARYGROUP

select
case @PRIMARYGROUP = "a"
use x: "\\server\@userid"

endselect

Not sure this was the problem, but anyway

Regards
erik