Permission by department manager from single report to view.

  • Hello,

    We are using SSRS 2005 and I have a report I want to give access to 5 different managers the report will be in a separate folders by department this report is a budget report. I don't want to change the sql query for each department individually and copy into the respective folders I would have ssrs 2005 recognize the department by folder and only give the data to the respective department manager. Is this possible? Thank you in advance.

  • alex_martinez (5/11/2013)


    Hello,

    We are using SSRS 2005 and I have a report I want to give access to 5 different managers the report will be in a separate folders by department this report is a budget report. I don't want to change the sql query for each department individually and copy into the respective folders I would have ssrs 2005 recognize the department by folder and only give the data to the respective department manager. Is this possible? Thank you in advance.

    What about altering the query to accept the department as a parameter? When you deploy the report to your report server, you can hard-code this value for each folder.



    The opinions expressed herein are strictly personal and do not necessarily reflect the views or policies of my employer.

  • Hi

    I am not expert but hard coding is not a good idea, tomorrw the coder leave and some new dept. to be included then what ??

  • nitin.lokhande (5/14/2013)


    Hi

    I am not expert but hard coding is not a good idea, tomorrw the coder leave and some new dept. to be included then what ??

    Copying the same report to multiple folders isn't really a great idea either. And if the coder leaves, who's going to set up the report for a new department anyway? To be clear, I'm suggesting hard-coding at the report level, not within the SQL itself.



    The opinions expressed herein are strictly personal and do not necessarily reflect the views or policies of my employer.

  • Thanks for the tip. 🙂

  • True, thanks:-)

  • You can also do additional table with permissions... like this:

    tabBudget will contain columns:

    [...]

    departamentID

    cash

    date

    [...]

    tabDeptUserPermissions will contain columns:

    ID

    departamentID

    user

    and in reporting services when You pull data from tabBudget do join with tabDeptUserPermissions on (tabBudget.departamentID = tabDeptUserPermissions.departamentID) and where tabDeptUserPermissions.user = User!UserID (not sure - this should be assigned to hidden parameter and this parameter should be used in query)

  • Thank you I appreciate the tip.:-)

  • In agreement 🙂

Viewing 9 posts - 1 through 8 (of 8 total)

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