Hi There,I forgot to mention the code is working if a user NOS type is Windows NT, but if we change it to Active Directory, it wont work?Any idea whats missing in the code?is it the way i get token or is there any settings at client or server side i need to do?I m having Filesite 8.2 SP1 client and Worksite Server 8.2 SP1..Regards,B