SCIM: Allow creating users with owner role and setting the role
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 635
Description
### Problem Statement
Currently the SCIM implementation explicitly forbids creating users with `owner` role and updating the user role to `owner`.
The API returns `SCIM_400_INVALID_ORGROLE`, while the role is perfectly valid and can be granted manually.
It is possible for SCIM to delete user with owner role, except for the last remaining owner.
I would expect SCIM to be able to create such users and update the permissions, as my intention is to manage all users and their roles on the IDP or IGA side.
### Solution Brainstorm
As there might be some reasoning behind preventing owner user creation via SCIM, the behaviour could be controlled by a checkbox `Allow owner role to be provisioned`, unchecked by default in SCIM settings.
### Product Area
Settings - Auth
Contributor guide
Research direction
Start by locating the SCIM implementation and settings handling for organization roles, then inspect existing tests for user creation, role updates, deletion, and the last-owner restriction. Clarify whether owner provisioning should be enabled by default or controlled by a setting; done means valid SCIM create and update requests can assign owner without weakening the last-owner safeguard.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication, authorization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100