Skip to content

KC-1427: Add NSF folder support to list-sf --roe-eligible - #2323

Open
sshrushanth-ks wants to merge 2 commits into
KC-1427from
KC-1427-int
Open

KC-1427: Add NSF folder support to list-sf --roe-eligible#2323
sshrushanth-ks wants to merge 2 commits into
KC-1427from
KC-1427-int

Conversation

@sshrushanth-ks

@sshrushanth-ks sshrushanth-ks commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Integrations (Slack, Google Chat) detect PAM eligibility via list-sf --roe-eligible --format=json, but the command only searched classic Shared Folders, returning "No shared folders are found" for Nested Share Folders even when they contained PAM User records with rotation configured. Now --roe-eligible includes NSF folders in results with a new folder_type column ('Classic' or 'Nested') so integrations can distinguish between folder types and route to the correct command (share-folder vs nsf-share-folder).

Changes

  • keepercommander/api.py: Added search_nested_share_folders() helper mirroring search_shared_folders() to search NSF folders by UID/name
  • keepercommander/commands/record.py: Extended RecordListSfCommand.execute() to search NSF folders only when --roe-eligible is set; added folder_type column ('Classic'/'Nested') to both JSON and table output
  • unit-tests/test_api.py: Added test_search_nested_share_folders() with 6 test cases (empty search, token match, UID match, no match, missing attribute, empty cache)
  • unit-tests/test_command_record.py: Added test_shared_list_nsf_only_when_roe_eligible() verifying NSF gating behavior; added test_shared_list_folder_type_column() verifying output format

Fixes: list-sf <nsf_uid> --roe-eligible now returns NSF folders with PAM User rotation configured

Add search_nested_share_folders() helper and extend RecordListSfCommand to
include NSF folders with PAM User rotation in --roe-eligible results. Enables
integrations (Slack, Google Chat) to detect PAM eligibility on NSF folders.
@sshrushanth-ks sshrushanth-ks changed the title Support NSF folders in list-sf --roe-eligible KC-1427: Support NSF folders in list-sf --roe-eligible Aug 27, 2026
Gate NSF search behind --roe-eligible flag; add folder_type column ('Classic'
or 'Nested') to enable integrations to distinguish classic vs NSF folder UIDs.
Includes test coverage.
@sshrushanth-ks sshrushanth-ks changed the title KC-1427: Support NSF folders in list-sf --roe-eligible KC-1427: Add NSF folder support to list-sf --roe-eligible Aug 27, 2026
@sshrushanth-ks sshrushanth-ks self-assigned this Aug 27, 2026
@sshrushanth-ks
sshrushanth-ks marked this pull request as ready for review August 27, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant