You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support status field on user create, document invite caveat (#1665)
* feat: support status field on user create, document invite caveat
Adds an optional `status` parameter to `mgmt.user.create()` (sync and
async), matching the status field already supported by the create-user
API and by `patch()`. Also documents in the README that `invite` only
controls whether an invitation message is sent, not the resulting user
status.
* style: run ruff format
* refactor: centralize user status validation in UserBase
create(), patch(), and patch_batch() (sync + async) each repeated the
same status allowlist and error message. Moved it into a single
UserBase._validate_status() so adding a new status only means editing
one place.
0 commit comments