Solved

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

Posted on 2010-08-24
4
324 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

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

Synchronize a new Active Directory domain with an existing Office 365 tenant
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

810 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