Solved

Pass user's office from active directory 'general' tab to report parameter in report services

Posted on 2010-08-24
4
322 Views
Last Modified: 2012-05-10
Hello All,

We would like to implement a modicum of security in the report manager so that users of a particular report are not able to run the report for different departments.  This would be alternative to deploying different versions of the report.  We would like to pass information from their active directory profile ('office') to the report itself and have that determine a parameter's values.

For example.  We have several reports that contain a single parameter drop down for office...that parameter has all offices listed. Using desired method, we would have the office they belong to (determined via active directory) passed to the selection criteria parameter automatically -  or could also be used as thefilter data.  

Is this possible? If possible, are there other fields available besides office - are all fields available from their AD profile?  If not possible, are there other methods for accomplishing my goal? Any nudge in the right direction would be appreciated.  I've googled around, but not found the right solution.

Let me know if you need more details.
0
Comment
Question by:angelnjj
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
aelliso3 earned 500 total points
ID: 33523952
Are you currently querying AD in your report, if so, then you can return the current user to a hidden parameter. That hidden parameter can use the value for other fields in the stored procedure.
This link will give you some of the fields that are available:
http://blog.tech-cats.com/2007/09/querying-active-directory-through-sql.html 
0
 
LVL 1

Author Comment

by:angelnjj
ID: 33524672
I'm not currently querying AD in my report - didn't know/don't know how to do that...will review article today and work through it...if I have questions will post again, if not will reward!  Gimme until the morning.  Thanks...
0
 
LVL 1

Author Closing Comment

by:angelnjj
ID: 33532421
Followed link method, which didn't quite work, but was then better able to form a google search - and found exactly what I was looking for.  Thanks for pointing me in the right direction.
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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

919 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

14 Experts available now in Live!

Get 1:1 Help Now