User Account Association API
The User Account Association API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
admin
Operations available for privileged users, to be invoked on behalf of another user.
Get user's associations
GET /{user-id}/associations
This API is used to retrieve the associations of the user.
Scope(Permission) required: internal_user_association_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
user-id | path | string | Yes | user id |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful operation | array of User |
204 | No content | |
401 | Unauthorized request | |
403 | Resource Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Delete user's all user associations
DEL /{user-id}/associations
This API is used to delete all associations of the user.
Scope(Permission) required: internal_user_association_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
user-id | path | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No content | |
401 | Unauthorized request | |
403 | Resource Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Get user's federated associations
GET /{user-id}/federated-associations
This API is used to retrieve the federated associations of the user.
Scope(Permission) required: internal_user_association_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
user-id | path | string | Yes | user id |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful operation | array of FederatedAssociation |
204 | No content | |
401 | Unauthorized request | |
403 | Resource Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Create federated user association
POST /{user-id}/federated-associations
This API allows administrators to explicitly associate a local user with a federated identity.
Scope(Permission) required: internal_user_association_create
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
user-id | path | any | Yes | user id |
Request body (required): application/json
User details to be associated.
Schema: FederatedAssociationRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
idp | string | Name of the IdP | |
federatedUserId | string | User identifier in the federated IdP |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successfully created | |
400 | Bad Request | |
401 | Unauthorized | |
403 | Resource Forbidden | |
500 | Server Error |
Delete user's all user-federated associations
DEL /{user-id}/federated-associations
This API is used to delete all federated associations of the user.
Scope(Permission) required: internal_user_association_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
user-id | path | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No content | |
401 | Unauthorized request | |
403 | Resource Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Delete the user's federated association
DEL /{user-id}/federated-associations/{id}
This API is used to delete a federated association of the user.
Scope(Permission) required: internal_user_association_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
user-id | path | string | Yes | |
id | path | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No content | |
401 | Unauthorized request | |
403 | Resource Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Schemas
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string | ||
traceId | string |
User
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
userId | string | ||
username | string | ||
userStoreDomain | string | ||
tenantDomain | string | ||
firstName | string | ||
lastName | string | ||
email | string |
FederatedAssociation
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | ||
idp | Idp | ||
federatedUserId | string |
Idp
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | ||
name | string | ||
displayName | string | ||
imageUrl | string |
AssociationUserRequest
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
userId | string | ||
password | string | ||
properties | array of Property |
FederatedAssociationRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
idp | string | Name of the IdP | |
federatedUserId | string | User identifier in the federated IdP |
Was this page helpful?