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
566 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
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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SharePoint 2010 Versioning 2 30
Super Scope, DHCP 5 53
SharePoint Online Security 5 48
Migrated Mailboxes showing as disconnected in old Exchange env 1 17
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now