Does anyone know what API the INGROUP function uses to obtain the Users Group information.

I need to know to determine whether the problem is with Kixtart or with AD/XP.