User store management API
The UserStore Management Rest API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth/token, authorization URL https://localhost:9443/oauth/authorize
3 scopes
| Scope | Description |
|---|---|
read | Grants read access |
write | Grants write access |
admin | Grants read and write access to administrative information |
User Store
Retrieve the list of secondary user stores
GET /userstores
This API provides the capability to list the configured secondary user stores.
Scope(Permission) required: internal_org_userstore_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer (int32) | maximum number of records to return | |
offset | query | integer (int32) | number of records to skip for pagination | |
filter | query | string | Condition to filter the retrieval of records. | |
sort | query | string | Define the order of how the retrieved records should be sorted. | |
requiredAttributes | query | string | Define set of user store attributes (as comma separated) to be returned. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response. | array of UserStoreListResponse |
401 | Unauthorized. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
501 | Not Implemented. | Error |
Add a secondary user store.
POST /userstores
This API provides the capability to add a secondary user store.
NOTE:
To retrieve the available user store classes/types, use the api/server/v1/userstores/meta/types API.
When creating a user store, it will be disabled by default. To enable the user store, include the disabled property set to false in the properties of the payload.
Scope(Permission) required: internal_org_userstore_create
Request body: application/json
Secondary user store to add.
Schema: UserStoreReq
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
typeId | string | Yes | The id of the user store manager class type. |
description | string | Yes | Description of the user store. |
name | string | Yes | This is a unique name that identifies the user store. |
properties | array of Property | Yes | Various properties related to the user store such as connection URL, connection password etc. |
claimAttributeMappings | array of ClaimAttributeMapping | Claim attribute mappings. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successful response | UserStoreResponse |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
409 | Element Already Exists. | Error |
500 | Internal Server Error. | Error |
Import a secondary user store from a file
POST /userstores/import
This API provides the capability to import a user store from
the configurations provided as a YAML, JSON or XML file.
Scope(Permission) required: internal_org_userstore_create
Request body: multipart/form-data
This represents the user store to be created.
Schema: FileUpload
1 property
| Name | Type | Required | Description |
|---|---|---|---|
file | string (binary) | File uploaded during import. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successful response | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
409 | Element Already Exists. | Error |
500 | Internal Server Error. | Error |
Retrieve the configurations of primary user store
GET /userstores/primary
This API provides the capability to retrieve the configurations of the primary user store.
Scope(Permission) required: internal_org_userstore_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response. | UserStoreConfigurationsRes |
401 | Unauthorized. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Retrieve the configurations of secondary user store based on its domain id
GET /userstores/{userstore-domain-id}
This API provides the capability to retrieve the configurations of
a secondary user store based on its domain id.
Scope(Permission) required: internal_org_userstore_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
userstore-domain-id | path | string | Yes | The unique name of the user store domain |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response. | UserStoreConfigurationsRes |
401 | Unauthorized. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Update a user store by its domain id
PUT /userstores/{userstore-domain-id}
This API provides the capability to edit a user store based on its
domain id
Scope(Permission) required: internal_org_userstore_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
userstore-domain-id | path | string | Yes | Current domain id of the user store |
Request body: application/json
The secondary user store values which are needed to be edited for a given domain id.
Schema: UserStoreReq
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
typeId | string | Yes | The id of the user store manager class type. |
description | string | Yes | Description of the user store. |
name | string | Yes | This is a unique name that identifies the user store. |
properties | array of Property | Yes | Various properties related to the user store such as connection URL, connection password etc. |
claimAttributeMappings | array of ClaimAttributeMapping | Claim attribute mappings. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response. | UserStoreResponse |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Delete a secondary user store
DEL /userstores/{userstore-domain-id}
This API provides the capability to delete a secondary user store based on
matching to the given user store domain id.
Scope(Permission) required: internal_org_userstore_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
userstore-domain-id | path | string | Yes | The unique name of the user store domain |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content. | |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
500 | Internal Server Error. | Error |
Patch the secondary user store by it's domain id
PATCH /userstores/{userstore-domain-id}
This API provides the capability to update the secondary user store's property using patch request by using its domain id.
Scope(Permission) required: internal_org_userstore_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
userstore-domain-id | path | string | Yes | The unique name of the user store domain |
Request body (required): application/json
Schema: PatchRequest
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response. | UserStoreResponse |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Export a secondary user store by its domain id
GET /userstores/{userstore-domain-id}/export
This API provides the capability to retrieve the configurations of a
secondary user store based on its domain id as an XML, YAML, or JSON file.
Scope(Permission) required: internal_org_userstore_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
userstore-domain-id | path | string | Yes | ID of the user store domain. |
Accept | header | string | Content type of the file. Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response. | string |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | The specified resource is not found. | Error |
409 | Element Already Exists. | Error |
500 | Internal Server Error. | Error |
Update an existing user store by importing configs from a file
PUT /userstores/{userstore-domain-id}/import
This API provides the capability to update an existing user store by importing
user store configurations provided as a YAML, JSON or XML file.
Scope(Permission) required: internal_org_userstore_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
userstore-domain-id | path | string | Yes | ID of the user store. |
Request body: multipart/form-data
This represents the user store to be updated.
Schema: FileUpload
1 property
| Name | Type | Required | Description |
|---|---|---|---|
file | string (binary) | File uploaded during import. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successfully Updated. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Update the secondary user store attribute mappings by it's domain id.
PATCH /userstores/{userstore-domain-id}/attribute-mappings
This API provides the capability to update the secondary user store's attribute mappings using patch request by using its domain id.
Scope(Permission) required: internal_org_userstore_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
userstore-domain-id | path | string | Yes | The unique name of the user store domain |
Request body (required): application/json
Schema: AttributeMappingsReq
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Test the connection to the datasource used by a JDBC user store manager.
POST /userstores/test-connection
This API provides the capability to test the connection to the
datasource used by a JDBC user store manager.
Scope(Permission) required: internal_org_userstore_view
Request body: application/json
RDBMS connection properties used to connect to the datasource used by a JDBC user store manager.
Schema: RDBMSConnectionReq
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | User store domain name. | |
driverName | string | Yes | Driver Name. |
connectionURL | string | Yes | The Connection URL. |
username | string | Yes | The username. |
connectionPassword | string | Yes | The password. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response. | ConnectionEstablishedResponse |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
500 | Internal Server Error. | Error |
Meta
Retrieve the available user store classes/types
GET /userstores/meta/types
This API provides the capability to retrieve the available user store
types
Scope(Permission) required: internal_org_userstore_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response. | array of AvailableUserStoreClassesRes |
401 | Unauthorized. | |
500 | Internal Server Error. | Error |
Retrieve the properties of secondary user store of a given user store type
GET /userstores/meta/types/{type-id}
This API provides the capability to retrieve the properties of secondary
user store of a given class name.
Scope(Permission) required: internal_org_userstore_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type-id | path | string | Yes | Id of the user store type |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response. | MetaUserStoreType |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
501 | Not Implemented. | Error |
Retrieve the meta attributes of a user store of a given user store type.
GET /userstores/meta/types/{type-id}/attributes
This API provides the capability to retrieve the attribute mappings
of a given user store type.
Scope(Permission) required: internal_org_userstore_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type-id | path | string | Yes | Id of the user store type |
includeIdentityClaimMappings | query | boolean | Whether to include the identity claim mappings with user store attributes. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response. | UserStoreAttributeMappingResponse |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Schemas
UserStoreReq
Type: object
Secondary user store request.
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
typeId | string | Yes | The id of the user store manager class type. |
description | string | Yes | Description of the user store. |
name | string | Yes | This is a unique name that identifies the user store. |
properties | array of Property | Yes | Various properties related to the user store such as connection URL, connection password etc. |
claimAttributeMappings | array of ClaimAttributeMapping | Claim attribute mappings. |
PatchRequest
Type: array of PatchDocument
PatchDocument
Type: object
A JSONPatch document as defined by RFC 6902
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
operation | string | Yes | The operation to be performed Allowed values: |
path | string | Yes | A JSON-Pointer |
value | string | The value to be used within the operations |
RDBMSConnectionReq
Type: object
RDBMS Connection Request.
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | User store domain name. | |
driverName | string | Yes | Driver Name. |
connectionURL | string | Yes | The Connection URL. |
username | string | Yes | The username. |
connectionPassword | string | Yes | The password. |
ClaimAttributeMapping
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
claimURI | string | Yes | A unique URI specific to the claim. |
mappedAttribute | string | Yes | Userstore attribute to be mapped to. |
Error
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string |
UserStoreListResponse
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | base64 url encoded value of domain name | |
name | string | Domain name of the secondary user store. | |
enabled | boolean | Enabled status of the userstore. | |
description | string | ||
isLocal | boolean | Whether the user store is local or not. | |
self | string | Location of the created/updated resource. | |
typeName | string | User store type name. | |
properties | array of AddUserStorePropertiesRes | Requested configured user store property for the set |
MetaUserStoreType
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
typeName | string | ||
typeId | string | ||
className | string | ||
isLocal | boolean | Whether the user store is local or not. | |
properties | UserStorePropertiesRes |
UserStoreResponse
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | base64 url encoded value of domain name | |
name | string | domain name of the secondary user store | |
typeName | string | ||
typeId | string | ||
description | string | ||
properties | array of AddUserStorePropertiesRes | Configured user store proper for the set. | |
claimAttributeMappings | array of ClaimAttributeMapping | Configured user store claim attribute mappings |
AvailableUserStoreClassesRes
Type: object
Available User Store Classes Response.
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
typeId | string | ||
typeName | string | ||
className | string | ||
isLocal | boolean | Whether the user store is local or not. | |
self | string |
UserStoreConfigurationsRes
Type: object
Available User Store Configurations Response.
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
typeName | string | ||
typeId | string | ||
name | string | ||
description | string | ||
className | string | ||
isLocal | boolean | Whether the user store is local or not. | |
properties | array of AddUserStorePropertiesRes | Configured user store property for the set | |
claimAttributeMappings | array of ClaimAttributeMapping | Requested configured user store claim attribute mappings. |
AddUserStorePropertiesRes
Type: object
Available User Store Properties.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
value | string | Yes |
UserStorePropertiesRes
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
Mandatory | array of PropertiesRes | ||
Optional | array of PropertiesRes | ||
Advanced | array of PropertiesRes |
PropertiesRes
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | ||
defaultValue | string | ||
description | string | ||
attributes | array of Attribute |
UserStoreAttributeMappingResponse
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
typeName | string | Type name of the user store. | |
typeId | string | Type id of the user store. | |
isLocal | boolean | Whether the user store is local or not. | |
attributeMappings | array of UserStoreAttributeResponse | User store attribute mappings. |
UserStoreAttributeResponse
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
claimId | string | Claim id of the attribute. | |
claimURI | string | Claim URI of the attribute. | |
mappedAttribute | string | Mapped attribute name. | |
displayName | string | Display name of the attribute. |
FileUpload
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
file | string (binary) | File uploaded during import. |
Was this page helpful?