Page 1 of 1

How to get user profile from Active Directory?

Posted: 30 Jan 2015
by Noor Shahida Mohd Said
Hi,

I am new to SP Forms and need help.

Previously I don't have an issue to get user profile from Active Directory as I used InfoPath form. Now I'm stuck in customizing simple form to make my annual leave form as auto-fill with data such as Employee Name, Employee Number, Employed Date, Department etc...

Already googling but no solution found.

Any idea?

Re: How to get user profile from Active Directory?

Posted: 02 Feb 2015
by Dmitry Kozlov
Hi,

You can retrieve user profile properties with the help of JSOM and populate fields by using our JS-framework:

https://msdn.microsoft.com/en-us/librar ... e.15).aspx

Re: How to get user profile from Active Directory?

Posted: 04 Feb 2015
by Noor Shahida Mohd Said
Forgot to inform that I'm using SharePoint Foundation 2013 right now. Does your link solution can be apply to Foundation also?

Re: How to get user profile from Active Directory?

Posted: 04 Feb 2015
by Dmitry Kozlov
If you need to retrieve properties that do not exist in the User Information List, you can synchronize a custom list with Active Directory with the help of simple console application that starts on schedule:

http://ranaictiu-technicalblog.blogspot ... r.html?m=1

And then retrieve data from the list via JavaScript.

Re: How to get user profile from Active Directory?

Posted: 05 Feb 2015
by Noor Shahida Mohd Said
Can you show my step by step esspecially the coding. I have no idea where to execute the source code as the given link also did not mention where it is.