?
Solved

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

Posted on 2010-08-24
4
Medium Priority
?
330 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
[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
4 Comments
 
LVL 11

Accepted Solution

by:
aelliso3 earned 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
Viewers will learn how the fundamental information of how to create a table.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

764 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