Tutorial: How to get the active directory details of the currently logged in user - InfoPath Dev
in

InfoPath Dev

Tutorial: How to get the active directory details of the currently logged in user

Last post 05-31-2011 10:21 AM by lrosemond. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-17-2007 08:27 AM

    Tutorial: How to get the active directory details of the currently logged in user

    // using jscript - dont use vb, nobody is using vbscript in infopath, it hurts the brain, trust me.

    //Call Wscript to get user logged in details:

     var oNet = new ActiveXObject("Wscript.Network");
     sUserID = oNet.surname;

    // Call AD to get details about user:

     var objSysinfo = new ActiveXObject("ADSystemInfo");
     var strUser = objSysinfo.UserName;
     var objUser = GetObject("LDAP://" + strUser);
     strSurname = objUser.get("SN");
     strGivenname = objUser.get("givenName");
     strEmail = objUser.get("MAIL");
     strFacility = objUser.get("physicalDeliveryOfficeName");
     strExtension = objUser.get("telephoneNumber");
     strManager = objUser.get("manager");

     

  • 05-31-2011 10:21 AM In reply to

    Re: Tutorial: How to get the active directory details of the currently logged in user

     How do you find the Active Directory group memberships using jscript?

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.