Solved

Can I auto populate SharePoint Foundation 2013 forms from active directory details?

Posted on 2013-10-23
3
763 Views
Last Modified: 2013-11-01
Hi,

Using SharePoint Foundation 2013, can I auto-populate out of the box forms/lists using the authenticated users active directory details?

Thanks.
0
Comment
Question by:aspnet-scotland
  • 2
3 Comments
 
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 39596493
Not completely out of the box no.

If you were using Enterprise (bear with me here) you might use InfoPath and call the SharePoint web services to insert user details into the form fields. (An example here; http://www.sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?ID=178)

As you're using Foundation you cant do that. So I think you'd have to do it through javascript/jquery. (Not really an end user solution).

There is a free javascript library called SP Services (http://spservices.codeplex.com/) which makes it easy to call SharePoint Web Services from code. You could insert script in your forms to call the same web services in the InfoPath article above and get the same effect.

In SharePoint Designer you also have the ability to call out to web services, but that's in Workflows. I dont believe you'll have any way to apply such actions to your forms, so alas I think you're needing SP Services and javascript.
0
 

Author Comment

by:aspnet-scotland
ID: 39599964
0
 
LVL 31

Accepted Solution

by:
Jamie McAllister MVP earned 500 total points
ID: 39600523
I recommend you avoid custom timer jobs. They can cause problems in your farm and may not even be supported in future versions of the product.

http://www.the-north.com/sharepoint/post/Dont-write-SharePoint-Timer-jobs-(etc)-without-good-reason
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question