Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ BUG ] Export-FalconReport does not export correct results from Get-FalconUser #187

Closed
NotJohnGrant opened this issue Feb 24, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@NotJohnGrant
Copy link

Describe the bug
Export-FalconReport is not correctly exporting user roles. Each user has one role exported even when assigned multiple roles.
User with roles: {binarly_admin, custom_ioas_manager, dashboard_admin, device_control_manager, vulnerability_manager} will only have one role exported, vulnerability_manager.

To Reproduce

Get-FalconUser -Detailed -Include roles | Export-FalconReport test.csv

Expected behavior
Export-FalconReport to export all roles assigned to a user.

Environment (please complete the following information):

  • OS: MacOS 12.2.1
  • PowerShell: 7.2.1
  • PSFalcon: 2.1.7
@NotJohnGrant NotJohnGrant added the bug Something isn't working label Feb 24, 2022
@bk-cs bk-cs self-assigned this Feb 25, 2022
bk-cs added a commit that referenced this issue Feb 25, 2022
Issue #187: Fixed typo which was causing array values to only show a single value (instead of all values) when using 'Export-FalconReport'.
@bk-cs
Copy link
Collaborator

bk-cs commented Feb 25, 2022

Nice catch!

I believe this is due to a typo, and unfortunately affected every [array] value when using Export-FalconReport. The Get-Array function it uses was supposed to join all values in the array, but it was outputting a single result (the final one) instead. The corrected function will be included in the v2.1.8 release.

Please replace your Public\psf-output.ps1 file with the content of this file to fix the problem until the release is available: https://raw.githubusercontent.com/CrowdStrike/psfalcon/master/Public/psf-output.ps1

@NotJohnGrant
Copy link
Author

That did the trick, thanks for the assist!

@bk-cs
Copy link
Collaborator

bk-cs commented Feb 25, 2022

Keeping issue open until v2.1.8 release in case other people want to resolve the same issue.

@bk-cs bk-cs reopened this Feb 25, 2022
@bk-cs
Copy link
Collaborator

bk-cs commented Mar 16, 2022

Fixed with v2.1.8 release which will be present on the PowerShell Gallery soon.

@bk-cs bk-cs closed this as completed Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants