Well, would suggest you add the functionality of the INGROUP function and the USE statement, together it looks like this:

Code:

IF INGROUP("Domain Users")
USE M: "\\SERVER\SHARE"
ENDIF



Should give you what your looking for - try it out - if everything works, could incorporate this into a custom UDF, but get this bit working first.

-Shawn