Skip to content

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

Merged
amangalampalli-ks merged 3 commits into
enhance/ei-verbose-tree-sharesfrom
enhance/ei-verbose-tree-shares-int
Jul 23, 2026
Merged

Return enterprise user IDs in verbose mode and add tree --format=json with share permissions#2240
amangalampalli-ks merged 3 commits into
enhance/ei-verbose-tree-sharesfrom
enhance/ei-verbose-tree-shares-int

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).

@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 06:02
@amangalampalli-ks
amangalampalli-ks merged commit 24e3f13 into enhance/ei-verbose-tree-shares Jul 23, 2026
4 checks passed
sk-keeper pushed a commit that referenced this pull request Jul 23, 2026
… 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>
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.

4 participants