Coder Social home page Coder Social logo

Comments (4)

plus-zz avatar plus-zz commented on June 11, 2024 1

Updated to PSFalcon 2.2.6 - Now no error messages anymore. But IDs of custom roles will not be displayed.

Command with no custom roles:

Get-FalconRole -Cid xxxxx | Get-FalconRole

Command with error Detailed is not a valid parameter:

Get-FalconRole -Cid xxxxxxx -Id yyyyyyy -Detailed

PS: I love this PowerShell PSFalcon module, the wiki and the easy way of administration. Thank you for your awesome module, making everyday easier!

from psfalcon.

bk-cs avatar bk-cs commented on June 11, 2024

In my testing, the following command does return the role information for custom roles (i.e. those with an identifier value rather than plain text role label):

Get-FalconRole -Cid xxx | Get-FalconRole

The problem is that custom roles return a cid value while the standard roles do not. Because of how PowerShell works, that means that you don't see the custom role in the final output. You can use Format-List to see that it is there:

Get-FalconRole -Cid xxx | Get-FalconRole | Format-List

Or, you can use Select-Object to force it to show in the table (with cid being empty for all the other roles):

Get-FalconRole -Cid xxx | Get-FalconRole | Select-Object id,display_name,description,is_global,cid

I can't force it to end up in the final output automatically without adding some additional features to PSFalcon (which I do have on my bucket list for the future, but not anytime soon).

from psfalcon.

plus-zz avatar plus-zz commented on June 11, 2024

Thank you for your code-snippets.
It's working like you described.

Maybe you can help me with a problem I try to solve.

I want in the end to create some kind of excel pivot table.
Rows = Settings enabled / disabled within a Role.
Columns = RoleName

Why this?
CustomRoles will have the name of an EntraAD Security Group.
Automation will add analysts to the corresponding Roles.
Role permissions can be negotiated between different teams and then assigned.

Questions:
How can I get a csv export of all enabled security settings for custom groups per CID?

Thank you for your super fast response! 🥇

from psfalcon.

bk-cs avatar bk-cs commented on June 11, 2024

How can I get a csv export of all enabled security settings for custom groups per CID?

There isn't an API available that will output the permissions for a given role. :(

from psfalcon.

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.