Skip to content

KC-1354: Show team names in nsf-get team_permissions JSON#2236

Merged
craiglurey merged 1 commit into
releasefrom
KC-1354
Jul 21, 2026
Merged

KC-1354: Show team names in nsf-get team_permissions JSON#2236
craiglurey merged 1 commit into
releasefrom
KC-1354

Conversation

@sshrushanth-ks

Copy link
Copy Markdown
Contributor

Summary

nsf-get <folder_uid> --format json returned the team UID in team_permissions[].accessor instead of the team name. User permissions already showed emails correctly. Team accessors were never resolved to display names in get_folder_access_v3, so the UI fell back to the UID. This fix resolves AT_TEAM accessor UIDs to human-readable team names before building the JSON/text output.

Changes

  • folder_api.py — added _resolve_uid_to_team_name; get_folder_access_v3 now populates username for AT_TEAM accessors from team_cache / enterprise / share_objects / available_team_cache
  • test_nested_share_folder.py — added tests for team name resolution and for nsf-get JSON using the team name in team_permissions

* fix: Show team names instead of UIDs in nsf-get team_permissions

* corrected path for mock in test file
@sshrushanth-ks
sshrushanth-ks marked this pull request as ready for review July 21, 2026 08:26
@sshrushanth-ks sshrushanth-ks self-assigned this Jul 21, 2026
@craiglurey
craiglurey merged commit 776338a into release Jul 21, 2026
4 checks passed
@sk-keeper
sk-keeper deleted the KC-1354 branch July 21, 2026 14:46
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