Report Model Security

  • Hi All,

    We have a SSRS Report Model published to multiple users across our business (Around 25 users from 5 different offices). the problem is all the users have access to data related to all the offices. we want to limit this so that people from a particular office should be able to see data that is related to their office only. How can this be done? please point me in the right direction.

    Many Thanks in advance.

  • Set up an internal report parameter called @user-id (or something), and set it equal to the report global User!UserID. Make sure it's at the top of the parm list in your report, so it is determined first.

    Provided you have the per-user permissions defined somewhere in your db, you can then use that parm in a query to do filtering on, in your case, your "Office Parameter". For example :

    ---totally made up query for Office parm dropdown ---

    SELECT

    Id, Description

    FROM Office AS O

    INNER JOIN OfficePermissions AS OP ON O.OfficeID = OP.OfficeID

    INNER JOIN Users as U ON OP.UserID = U.UserID

    WHERE U.UserID = @user-id

    Hope that helps!

    Cheers,

    EJM

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply