Solved

In SharePoint 2010, how do I find a user's Active Directory "Office Location" value using jQuery, XML, scripting or inline code?

Posted on 2011-09-29
2
584 Views
Last Modified: 2012-05-12
In SharePoint 2010, I need to script/create a Case Statement that will return a user's "Office Location" AD field value.  Is this possible using jQuery or XML?  Perhaps using AJAX.

This is for displaying weather conditions for various locations.  I have a jQuery script that will show the weather for a specific city based on a numeric value.  Since I know the 18 citiy locations, I want to use a case statement (or something similar) and pass on the correct value depending on the user's AD location information.  

I have the User Profile Service Application configured and running correctly.

I would like to get one weather report ( based on the user's location ) like the link below (but just one result) by passing the correct information to a case statement from the user's AD info.

http://www.zazar.net/developers/jquery/zweatherfeed/example.html
0
Comment
Question by:SPBosco
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
Ivan Padabed earned 500 total points
ID: 36899782
at first you need to be sure that you have mapped AD "Office Location" field to SharePoint profile property in UPS.
for the rest - please use the answer from that forum: http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/8b432442-427b-4fd0-bcaf-8c89a952571c
0
 

Author Closing Comment

by:SPBosco
ID: 36934629
I was also looking for some information about case statements in jquery.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

628 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