litellm/tests/test_litellm/proxy/management_endpoints/scim
Yassin Kortam fd377eece8
feat(scim): ingest enterprise extension attributes into user metadata (#30893)
Map the SCIM enterprise extension block
(urn:ietf:params:scim:schemas:extension:enterprise:2.0:User) onto SCIMUser
so create and PUT persist employeeNumber, costCenter, organization,
division, department, and manager into LiteLLM_UserTable.metadata under
scim_enterprise, and round-trip them back out on read. This lets financial
reporting group spend by fields like cost center and department.

The enterprise block holds directory-only HR attributes, so it is kept out
of the generic user management responses (/user/info, /v2/user/info, and
/user/list), which non-proxy-admin callers such as team and org admins can
use to read other users. The data still lands in metadata for reporting and
still round-trips through the SCIM read endpoints, which build their response
from the user row directly.

Resolves LIT-3617
2026-06-22 12:17:41 -07:00
..
test_scim_key_deactivation.py fix(scim): preserve scim_active on PUT when client omits the field 2026-05-02 04:15:25 +00:00
test_scim_patch_user.py fix(scim): block virtual keys when SCIM deprovisions/deactivates a user 2026-04-30 02:01:23 +00:00
test_scim_transformations.py feat(scim): ingest enterprise extension attributes into user metadata (#30893) 2026-06-22 12:17:41 -07:00
test_scim_v2_discovery.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_scim_v2_endpoints.py feat(scim): ingest enterprise extension attributes into user metadata (#30893) 2026-06-22 12:17:41 -07:00