Solved

How do I block users from seeing links to reports that they are not authorized to view

Posted on 2007-12-04
3
241 Views
Last Modified: 2010-04-14
I have a group of employees that all need to view different reports. I have some of the teams divided up so that their reports are collected in the same folders. The problem is that one folder may contain 100s of reports and any given user only has access to a few of them. How do I set up Reporting services to let each user only see the reports that they have access to?

i.e. If there are three folders (fld1, fld2, and fld3) and 100 reports in each; and John Dow only has access to rpt1 and rpt 2 in fld1 then when he logs on he should only see the fld1 folder from the home page and once he clicks on that link he will only see links to his two reports inside that folder.

I also have .Net at my disposal. So if I can't achieve this through RS how do I build a work around?
0
Comment
Question by:rufassa
  • 2
3 Comments
 
LVL 17

Expert Comment

by:xDJR1875
Comment Utility
Are you doing this thru a Winform application or a Web application?
0
 

Author Comment

by:rufassa
Comment Utility
I am currently just using the report manager for Reporting Services. But If I were to write a .Net app to create something then it would be web based.
0
 
LVL 17

Accepted Solution

by:
xDJR1875 earned 500 total points
Comment Utility
There are various ways to handle user authorization/security.
Here are some:
1) Create roles in SQL and assign the users of the database to a role.
     then Create Secure Views to specific data for each role

2) Create a User table of your own with an associated Role table of your own design and a reports table listing each report.  Create a Role_Report table that will have entries for each role and associated report that that role can view. Create your Web App to Select the viewable reports from the database you created by referencing the Role_Report Table.

As you can see it will take a bit of work if you have a wide variety of roles. It might help if you can limit the number of roles.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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 different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

771 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

9 Experts available now in Live!

Get 1:1 Help Now