-
Notifications
You must be signed in to change notification settings - Fork 409
Document SCIM2 Schemas API #6055
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sadilchamishka
merged 2 commits into
wso2:master
from
sadilchamishka:application-wise-outbound-provisioning-doc-improvements
Apr 21, 2026
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,354 @@ | ||
| openapi: 3.0.1 | ||
| info: | ||
| title: SCIM 2.0 Schemas Retrieval API | ||
| description: | | ||
| This document specifies **SCIM 2.0 Schemas RESTful API** for **Asgardeo**. | ||
| version: "v1" | ||
| servers: | ||
| - url: 'https://api.asgardeo.io/t/{organization-name}/scim2' | ||
| tags: | ||
| - name: Schemas Endpoint | ||
| description: This API lists and returns metadata about SCIM 2.0 schemas. | ||
| paths: | ||
| /Schemas: | ||
| get: | ||
| tags: | ||
| - Schemas Endpoint | ||
| summary: Get All Schemas | ||
| description: "This API returns all supported SCIM 2.0 schema definitions.\n\n | ||
| <b>No Scope(Permission) required.</b>" | ||
| operationId: getSchemas | ||
| responses: | ||
| 200: | ||
| description: Schemas are found | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: array | ||
|
sadilchamishka marked this conversation as resolved.
|
||
| items: | ||
| $ref: '#/components/schemas/SchemaObject' | ||
| 401: | ||
| description: Unauthorized | ||
| content: | ||
| application/scim+json: | ||
| schema: | ||
| $ref: '#/components/schemas/ErrorUnauthorized' | ||
| 404: | ||
| description: Schema not found | ||
| content: | ||
| application/scim+json: | ||
| schema: | ||
| $ref: '#/components/schemas/ErrorSchemaNotFound' | ||
| x-codeSamples: | ||
| - lang: Curl | ||
| source: | | ||
| curl -X 'GET' \ | ||
| 'https://api.asgardeo.io/t/{organization-name}/scim2/Schemas' \ | ||
| -H 'accept: application/json' \ | ||
|
sadilchamishka marked this conversation as resolved.
|
||
| -H 'Authorization: Bearer {bearer_token}' | ||
|
sadilchamishka marked this conversation as resolved.
|
||
|
|
||
| '/Schemas/{id}': | ||
| get: | ||
| tags: | ||
| - Schemas Endpoint | ||
| summary: Get Schema by ID | ||
| description: "This API returns the SCIM 2.0 schema definition identified by the given id.\n\n | ||
| <b>No Scope(Permission) required.</b>" | ||
| operationId: getSchemaById | ||
| parameters: | ||
| - name: id | ||
| in: path | ||
| description: Unique ID of the schema (e.g., urn:ietf:params:scim:schemas:core:2.0:User). | ||
| required: true | ||
| schema: | ||
| type: string | ||
| responses: | ||
| 200: | ||
| description: Schema is found | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/SchemaObject' | ||
|
sadilchamishka marked this conversation as resolved.
|
||
| 401: | ||
| description: Unauthorized | ||
| content: | ||
| application/scim+json: | ||
| schema: | ||
| $ref: '#/components/schemas/ErrorUnauthorized' | ||
| 404: | ||
| description: Schema not found | ||
| content: | ||
| application/scim+json: | ||
| schema: | ||
| $ref: '#/components/schemas/ErrorSchemaNotFound' | ||
| x-codeSamples: | ||
| - lang: Curl | ||
| source: | | ||
| curl -X 'GET' \ | ||
| 'https://api.asgardeo.io/t/{organization-name}/scim2/Schemas/{id}' \ | ||
| -H 'accept: application/json' \ | ||
| -H 'Authorization: Bearer {bearer_token}' | ||
|
sadilchamishka marked this conversation as resolved.
|
||
|
|
||
| components: | ||
| schemas: | ||
| SchemaObject: | ||
| type: object | ||
| properties: | ||
| name: | ||
| type: string | ||
| description: The name of the schema. | ||
| example: "User" | ||
| description: | ||
| type: string | ||
| description: The description of the schema. | ||
| example: "User Account" | ||
| attributes: | ||
| type: array | ||
| description: The list of attributes defined in the schema. | ||
| items: | ||
| $ref: '#/components/schemas/SchemaAttribute' | ||
| id: | ||
| type: string | ||
| description: The unique URI of the schema. | ||
| example: "urn:ietf:params:scim:schemas:core:2.0:User" | ||
|
|
||
| SchemaAttribute: | ||
| type: object | ||
| properties: | ||
| name: | ||
| type: string | ||
| description: The attribute's name. | ||
| example: "userName" | ||
| type: | ||
| type: string | ||
| description: The attribute's data type. | ||
| enum: | ||
| - STRING | ||
| - COMPLEX | ||
| - BOOLEAN | ||
| - DECIMAL | ||
| - INTEGER | ||
| - DATE_TIME | ||
| - DATE | ||
| - BINARY | ||
| - REFERENCE | ||
| example: "STRING" | ||
| multiValued: | ||
| type: boolean | ||
| description: Whether the attribute is multi-valued. | ||
| example: false | ||
| description: | ||
| type: string | ||
| description: The attribute's human-readable description. | ||
| example: "Username" | ||
| required: | ||
| type: boolean | ||
| description: Whether the attribute is required. | ||
| example: false | ||
| caseExact: | ||
| type: boolean | ||
| description: Whether the string attribute is case sensitive. | ||
| example: false | ||
| mutability: | ||
| type: string | ||
| description: Indicates whether the attribute is mutable. | ||
| enum: | ||
| - READ_ONLY | ||
| - READ_WRITE | ||
| - IMMUTABLE | ||
| - WRITE_ONLY | ||
| example: "READ_WRITE" | ||
| returned: | ||
| type: string | ||
| description: Indicates when an attribute is returned in a response. | ||
| enum: | ||
| - ALWAYS | ||
| - NEVER | ||
| - DEFAULT | ||
| - REQUEST | ||
| example: "DEFAULT" | ||
| uniqueness: | ||
| type: string | ||
| description: Indicates how unique a value must be. | ||
| enum: | ||
| - NONE | ||
| example: "NONE" | ||
| displayName: | ||
| type: string | ||
| description: The display name of the attribute. | ||
| example: "Username" | ||
| displayOrder: | ||
| type: integer | ||
| description: The display order of the attribute. | ||
| example: 1 | ||
| supportedByDefault: | ||
| type: boolean | ||
| description: Whether the attribute is supported by default. | ||
| example: true | ||
| sharedProfileValueResolvingMethod: | ||
| type: string | ||
| description: The method used to resolve shared profile values. | ||
| example: "FromOrigin" | ||
| regEx: | ||
| type: string | ||
| description: The regular expression for validating the attribute value. | ||
| example: "^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,10})+$" | ||
| subAttributes: | ||
| type: array | ||
| description: The sub-attributes of a COMPLEX attribute. | ||
| items: | ||
| $ref: '#/components/schemas/SchemaSubAttribute' | ||
| profiles: | ||
| type: object | ||
| description: Profile-specific configurations for the attribute. | ||
| properties: | ||
| console: | ||
| type: object | ||
| properties: | ||
| supportedByDefault: | ||
| type: boolean | ||
| example: true | ||
| inputFormat: | ||
| type: object | ||
| description: The input format configuration for the attribute. | ||
| properties: | ||
| inputType: | ||
| type: string | ||
| example: "text_input" | ||
| excludedUserStores: | ||
| type: string | ||
| description: Comma-separated list of excluded user stores. | ||
| example: "" | ||
|
|
||
| SchemaSubAttribute: | ||
| type: object | ||
| properties: | ||
| name: | ||
| type: string | ||
| description: The sub-attribute's name. | ||
| example: "familyName" | ||
| type: | ||
| type: string | ||
| description: The sub-attribute's data type. | ||
| enum: | ||
| - STRING | ||
| - COMPLEX | ||
| - BOOLEAN | ||
| - DECIMAL | ||
| - INTEGER | ||
| - DATE_TIME | ||
| - DATE | ||
| - BINARY | ||
| - REFERENCE | ||
| example: "STRING" | ||
| multiValued: | ||
| type: boolean | ||
| description: Whether the sub-attribute is multi-valued. | ||
| example: false | ||
| description: | ||
| type: string | ||
| description: The sub-attribute's human-readable description. | ||
| example: "Last Name" | ||
| required: | ||
| type: boolean | ||
| description: Whether the sub-attribute is required. | ||
| example: false | ||
| caseExact: | ||
| type: boolean | ||
| description: Whether the string sub-attribute is case sensitive. | ||
| example: false | ||
| mutability: | ||
| type: string | ||
| description: Indicates whether the sub-attribute is mutable. | ||
| enum: | ||
| - READ_ONLY | ||
| - READ_WRITE | ||
| - IMMUTABLE | ||
| - WRITE_ONLY | ||
| example: "READ_WRITE" | ||
| returned: | ||
| type: string | ||
| description: Indicates when a sub-attribute is returned in a response. | ||
| enum: | ||
| - ALWAYS | ||
| - NEVER | ||
| - DEFAULT | ||
| - REQUEST | ||
| example: "DEFAULT" | ||
| uniqueness: | ||
| type: string | ||
| description: Indicates how unique a value must be. | ||
| enum: | ||
| - NONE | ||
| example: "NONE" | ||
| displayName: | ||
| type: string | ||
| description: The display name of the sub-attribute. | ||
| example: "Last Name" | ||
| displayOrder: | ||
| type: integer | ||
| description: The display order of the sub-attribute. | ||
| example: 3 | ||
| supportedByDefault: | ||
| type: boolean | ||
| description: Whether the sub-attribute is supported by default. | ||
| example: true | ||
| sharedProfileValueResolvingMethod: | ||
| type: string | ||
| description: The method used to resolve shared profile values. | ||
| example: "FromOrigin" | ||
| regEx: | ||
| type: string | ||
| description: The regular expression for validating the sub-attribute value. | ||
| profiles: | ||
| type: object | ||
| description: Profile-specific configurations for the sub-attribute. | ||
| properties: | ||
| console: | ||
| type: object | ||
| properties: | ||
| supportedByDefault: | ||
| type: boolean | ||
| example: true | ||
| inputFormat: | ||
| type: object | ||
| description: The input format configuration for the sub-attribute. | ||
| properties: | ||
| inputType: | ||
| type: string | ||
| example: "text_input" | ||
| excludedUserStores: | ||
| type: string | ||
| description: Comma-separated list of excluded user stores. | ||
| example: "" | ||
|
|
||
| ErrorUnauthorized: | ||
| required: | ||
| - status | ||
| type: object | ||
| properties: | ||
| schemas: | ||
| type: string | ||
| example: urn:ietf:params:scim:api:messages:2.0:Error | ||
|
sadilchamishka marked this conversation as resolved.
|
||
| detail: | ||
| type: string | ||
| example: "Authorization failure. Authorization information was invalid or missing from your request." | ||
| status: | ||
| type: string | ||
| example: "401" | ||
|
|
||
| ErrorSchemaNotFound: | ||
| required: | ||
| - detail | ||
| - status | ||
| type: object | ||
| properties: | ||
| status: | ||
| type: string | ||
| example: "404" | ||
| schemas: | ||
| type: string | ||
| example: urn:ietf:params:scim:api:messages:2.0:Error | ||
| detail: | ||
| type: string | ||
| example: Schema not found. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| template: templates/redoc.html | ||
| --- | ||
|
|
||
| <redoc spec-url="{{base_path}}/apis/restapis/scim2-schemas.yaml" theme='{{redoc_theme}}'></redoc> | ||
|
Check failure on line 5 in en/asgardeo/docs/apis/scim2/scim2-schema-rest-api.md
|
||
|
sadilchamishka marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.