{"library":"pydantic-scim","title":"Pydantic SCIM","description":"Pydantic-SCIM provides Pydantic models that strictly adhere to the SCIM (System for Cross-domain Identity Management) specification. It allows developers to define, validate, and serialize SCIM resources like Users and Groups, simplifying integration with SCIM-compliant identity providers. The library currently supports Pydantic v1.x.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install pydantic-scim"],"cli":null},"imports":["from pydantic_scim import User","from pydantic_scim import Group","from pydantic_scim import ListResponse"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pydantic_scim import User\n\n# Create a SCIM User object adhering to the SCIM Core Schema\nuser = User(\n    schemas=[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\n    userName=\"bjensen\",\n    name={\n        \"givenName\": \"Barbara\",\n        \"familyName\": \"Jensen\"\n    },\n    emails=[\n        {\n            \"value\": \"bjensen@example.com\",\n            \"type\": \"work\",\n            \"primary\": True\n        }\n    ],\n    active=True,\n    externalId=\"employee-id-123\"\n)\n\n# Serialize the user object to JSON (using Pydantic v1 .json() method)\nprint(user.json(indent=2))","lang":"python","description":"Demonstrates how to instantiate a SCIM User object and serialize it to JSON, following the required SCIM schema fields. Note the use of `user.json()` for Pydantic v1 serialization.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}