0

I've been asked to build a large tool on SharePoint 2013 so I've broken it down into parts and starting to learn some of the basics. I'm fairly new to SP 13 and have a little knowledge on JS but nothing to this level. Basically I need to be able to identify who the user is by looking at their active directory.

Every user would have had to sign into our office network and the tool is hosted on our internal intranet SP 13 servers.

I just need to get an idea of the code to pull the users name and display it on the screen by looking at their active directory entry.

1 Answer 1

0

To get a user's name as entered in AD, you can use this code:

SPContext.Current.Web.CurrentUser.Name

If you're looking to do this in JS, I found this link useful. SPServices is a great library for client side async calls

If you need all the details of a user, follow this post where I describe configuring the User Profile service:

Pulling Staff list when a location is selected

1
  • Fantastic! - I coudln't get the SPContext to work but I followed your link and it gave me all my details in a pop up - this is somethign I can work From. THANK YOU!!!
    – Daniel
    Commented May 22, 2014 at 7:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.