User account association API
The User Account Associations 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
me
Operations for the authenticated user.
Retrieve the associations of the authenticated user
GET /me/associations
This API is used to retrieve the associations of the authenticated user.
Scope(Permission) required: internal_login
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful operation | array of User |
204 | No content | |
401 | Unauthorized | |
403 | Resource Forbidden | |
500 | Server Error | Error |
Associate a user to the authenticated user
POST /me/associations
This API is used to associate a user to the authenticated user. For example, if it is required to associate your user account to the user account of 'john', this endpoint can be used. The userId and the password are required to associate the accounts.
Scope(Permission) required: internal_login
Request body (required): application/json
User details to be associated. userId should be the fully qualified username of the user.
Schema: AssociationUserRequest
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
userId | string | ||
password | string | ||
properties | array of Property |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successfully created | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
409 | Conflict | Error |
500 | Server Error | Error |
Delete the given user account from associations
DEL /me/associations/{associated-user-id}
This API is used to delete the given user account from the associations of the authenticated user.
Scope(Permission) required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
associated-user-id | path | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No content | |
401 | Unauthorized | |
403 | Resource Forbidden | |
500 | Server Error | Error |
Retrieve the federated associations of the authenticated user.
GET /me/federated-associations
This API is used to retrieve the federated associations of the authenticated user.
Scope(Permission) required: internal_login
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful operation | array of FederatedAssociation |
204 | No content | |
401 | Unauthorized | |
403 | Resource Forbidden | |
500 | Server Error | Error |
Delete my federated association
DEL /me/federated-associations/{id}
This API is used to delete a federated association of the authenticated user.
Scope required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
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 |
Was this page helpful?