How to get user profile from Active Directory?

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Noor Shahida Mohd Said
Posts: 5
Joined: Fri Jan 30, 2015

30 Jan 2015

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?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

02 Feb 2015

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

Noor Shahida Mohd Said
Posts: 5
Joined: Fri Jan 30, 2015

04 Feb 2015

Forgot to inform that I'm using SharePoint Foundation 2013 right now. Does your link solution can be apply to Foundation also?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

04 Feb 2015

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.

Noor Shahida Mohd Said
Posts: 5
Joined: Fri Jan 30, 2015

05 Feb 2015

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.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest