mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
docs SCIM enterprise only
This commit is contained in:
parent
b091c1ac4d
commit
f79737ad90
2 changed files with 15 additions and 10 deletions
|
|
@ -1,8 +1,11 @@
|
|||
|
||||
import Image from '@theme/IdealImage';
|
||||
|
||||
|
||||
# SCIM with LiteLLM
|
||||
|
||||
✨ **Enterprise**: SCIM support requires a premium license.
|
||||
|
||||
Enables identity providers (Okta, Azure AD, OneLogin, etc.) to automate user and team (group) provisioning, updates, and deprovisioning on LiteLLM.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
"""
|
||||
SCIM v2 Endpoints for LiteLLM Proxy using Internal User/Team Management
|
||||
✨ SCIM v2 Endpoints for LiteLLM Proxy using Internal User/Team Management
|
||||
|
||||
This is an enterprise feature and requires a premium license.
|
||||
"""
|
||||
|
||||
import uuid
|
||||
|
|
@ -32,12 +33,13 @@ from litellm.proxy.management_endpoints.scim.scim_transformations import (
|
|||
ScimTransformations,
|
||||
)
|
||||
from litellm.proxy.management_endpoints.team_endpoints import new_team
|
||||
from litellm.proxy.utils import handle_exception_on_proxy
|
||||
from litellm.proxy.utils import _premium_user_check, handle_exception_on_proxy
|
||||
from litellm.types.proxy.management_endpoints.scim_v2 import *
|
||||
|
||||
scim_router = APIRouter(
|
||||
prefix="/scim/v2",
|
||||
tags=["SCIM v2"],
|
||||
tags=["✨ SCIM v2 (Enterprise Only)"],
|
||||
dependencies=[Depends(_premium_user_check)],
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -82,13 +84,13 @@ async def get_users(
|
|||
where_conditions["user_email"] = email
|
||||
|
||||
# Get users from database
|
||||
users: List[
|
||||
LiteLLM_UserTable
|
||||
] = await prisma_client.db.litellm_usertable.find_many(
|
||||
where=where_conditions,
|
||||
skip=(startIndex - 1),
|
||||
take=count,
|
||||
order={"created_at": "desc"},
|
||||
users: List[LiteLLM_UserTable] = (
|
||||
await prisma_client.db.litellm_usertable.find_many(
|
||||
where=where_conditions,
|
||||
skip=(startIndex - 1),
|
||||
take=count,
|
||||
order={"created_at": "desc"},
|
||||
)
|
||||
)
|
||||
|
||||
# Get total count for pagination
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue