Skip to content

feat: add update_default_roles method to Tenant management#779

Merged
dorsha merged 1 commit intodescope:mainfrom
itamartal:mulberry-capacity
Mar 10, 2026
Merged

feat: add update_default_roles method to Tenant management#779
dorsha merged 1 commit intodescope:mainfrom
itamartal:mulberry-capacity

Conversation

@itamartal
Copy link
Contributor

Summary

  • Add update_default_roles method to the Tenant management class, allowing setting which project default roles apply to new users in a tenant
  • Add the /v1/mgmt/tenant/updateDefaultRoles API endpoint path
  • Add unit tests covering both failure and success flows

Test plan

  • Unit tests added for error and success cases
  • Manually verified against a live Descope project with real tenant and roles

🤖 Generated with Claude Code

Allow setting which project default roles apply to new users in a
tenant via the new /v1/mgmt/tenant/updateDefaultRoles endpoint.

Co-Authored-By: Claude <noreply@anthropic.com>
@shuni-bot-dev
Copy link

shuni-bot-dev bot commented Mar 10, 2026

🐕 Review complete — View session on Shuni Portal 🐾

Copy link

@shuni-bot-dev shuni-bot-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐕 Shuni's Review

Adds update_default_roles method to Tenant management for setting which project default roles apply to new tenant users. Clean, minimal change that follows existing SDK patterns.

No issues found — LGTM! Good bones! 🦴

@dorsha dorsha merged commit c5d5d37 into descope:main Mar 10, 2026
46 of 48 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