Skip to content

feat: add users roles list command#213

Merged
jeff-schnitter merged 10 commits into
stagingfrom
users-roles-list
Jun 11, 2026
Merged

feat: add users roles list command#213
jeff-schnitter merged 10 commits into
stagingfrom
users-roles-list

Conversation

@jeff-schnitter

Copy link
Copy Markdown
Collaborator

Summary

  • Adds cortex users roles list command hitting GET /api/v1/users/roles
  • Supports repeatable --email, -e filter, pagination, and table/CSV output
  • Follows the scorecards / scorecards_commands/exemptions subcommand pattern (users > roles > list)
  • 100% test coverage on new code with 5 integration tests

Files

  • cortexapps_cli/commands/users_commands/roles.py — roles list command
  • cortexapps_cli/commands/users.py — top-level users group
  • cortexapps_cli/cli.py — registration
  • tests/test_users.py — integration tests

Test Plan

  • poetry run pytest tests/test_users.py -v — 5/5 passing
  • 100% coverage on users.py and users_commands/roles.py
  • Tested against jeff-sandbox with Okta SCIM provisioned users

🤖 Generated with Claude Code

jeff-schnitter and others added 10 commits June 9, 2026 16:08
test: add unit tests for utils.py, cortex_client.py, integrations, and entity types (#210)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ublish triggers #patch

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jeff-schnitter jeff-schnitter requested a review from Cantaley as a code owner June 11, 2026 15:38
@jeff-schnitter jeff-schnitter merged commit 9bdba33 into staging Jun 11, 2026
3 checks passed
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