Code Monkey home page Code Monkey logo

Comments (5)

mmajcica avatar mmajcica commented on June 2, 2024

If security is not applied on the report level, it should be a bug.
Considering the following line,

Set-SecurityPolicy -Proxy $Proxy -Folder $currentFolder -Name $report.Name -RoleAssignments $report.RoleAssignments -InheritParentSecurity:$report.InheritParentSecurity -Overwrite:$Overwrite

I suppose it should be responsible for applying securiti settings over the report.
I'm looking at this from my cell phone, thus I may be wrong.
If you can test it, and in case make a PR, I'll be more than happy to accept it and publish a new version.

from deployssrs.

bajmming avatar bajmming commented on June 2, 2024

Sounds good and I'll create a PR soon. I also want to be able to set the Description property for Data Sources, Data Sets and Folders so I'll create a separate PR for that.

from deployssrs.

bajmming avatar bajmming commented on June 2, 2024

PR submitted.

If you add security at the report level and subsequently remove the permissions then the permissions will not be removed during deployment unless the InheritParentSecurity flag is set to true.

I wasn't sure whether there should be an Else in the code below to automatically apply Parent level security if there are no Roles, but this might cause issues for existing deployments...so seemed better for someone to set InheritParentSecurity explicitly.

For example we could do this?

                if ($RoleAssignments)
                {
                    ...
                }
                else 
                {
                    if(-not (Test-InheritParentSecurity $Proxy $Path))
                    {
                       Set-InheritParentSecurity $Proxy $Path
                    }
                }

from deployssrs.

mmajcica avatar mmajcica commented on June 2, 2024

@bajmming a new version is published.

from deployssrs.

bajmming avatar bajmming commented on June 2, 2024

Hi Mario, that's great...thanks for publishing so quickly :)

from deployssrs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.