Well, if tarnold is to be believed, the problem is not with the mapping but rather with InGroup().

One therefore needs to focus their attention on why InGroup() fails.

Kent,
I fail to see where your UDF has anything to do with the InGroup() issue.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.