Link to home
Start Free TrialLog in
Avatar of aspnet-scotland
aspnet-scotlandFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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

Hi,

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

Thanks.
Avatar of Jamie McAllister
Jamie McAllister
Flag of Switzerland image

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.
Avatar of aspnet-scotland

ASKER

ASKER CERTIFIED SOLUTION
Avatar of Jamie McAllister
Jamie McAllister
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial