Skip to content

Return enterprise user IDs in verbose mode and add tree --format=json with share permissions#2242

Merged
sk-keeper merged 1 commit into
releasefrom
enhance/ei-verbose-tree-shares
Jul 23, 2026
Merged

Return enterprise user IDs in verbose mode and add tree --format=json with share permissions#2242
sk-keeper merged 1 commit into
releasefrom
enhance/ei-verbose-tree-shares

Conversation

@amangalampalli-ks

Copy link
Copy Markdown
Contributor

Summary

  • Support SailPoint identity mapping by returning node/team/role IDs from enterprise-info --users -v.
  • Add tree --format=json so SailPoint can consume a Commander-native nested tree response.
  • Include classic and NSF folder/record share permissions in that JSON (and in text with -s / -ns).

Changes

  • enterprise-info

    • With -v, node / teams / roles return IDs instead of path/names; non-verbose output is unchanged.
  • tree – --format=json (main)

    • Adds native nested JSON output for tree (name, path, kind, children, share_permissions).
    • Recommended for SailPoint / new service-mode callers: tree --format=json.
    • Plain service-mode tree (no --format=json) keeps the legacy flat ASCII→parser response for existing integrations.
  • tree – folders

    • Classic (-s): text uses a single default: segment (no duplicate user:).
    • Classic JSON: user_permissions (MU/MR) and record_permissions (CE/CS), plus users / teams.
    • NSF (-ns): folder ACLs via warmed cache; JSON kind is nested_share_folder.
  • tree – records

    • Classic (-s -r): direct user shares only; no inherited folders list on the record.
    • NSF (-ns -r): record ACLs with parent-folder fallback when needed.
    • JSON kind is record (classic) or nested_record (NSF).

… with share permissions (#2240)

* fix: Return IDs for node/teams/roles in enterprise-info --users -v

* Implement format json, nsf folder and all records share-perms for tree

* Fix share-permissions for classic share-folder

---------

Co-authored-by: sshrushanth-ks <sshrushanth@keepersecurity.com>
@amangalampalli-ks amangalampalli-ks self-assigned this Jul 23, 2026
@amangalampalli-ks
amangalampalli-ks marked this pull request as ready for review July 23, 2026 13:11
@sk-keeper
sk-keeper merged commit 51e6a8f into release Jul 23, 2026
4 checks passed
@sk-keeper
sk-keeper deleted the enhance/ei-verbose-tree-shares branch July 23, 2026 16:05
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.

2 participants