Skip to main content
You're reading Identity & Access Management 7.0.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

User account association API

Download OpenAPI (YAML)Version v1

Base URL: https://localhost:9443/t/carbon.super/api/users/v1

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

CodeDescriptionSchema
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
NameTypeRequiredDescription
userIdstring
passwordstring
propertiesarray of Property

Responses

CodeDescriptionSchema
201

Successfully created

400

Bad Request

Error
401

Unauthorized

403

Resource Forbidden

409

Conflict

Error
500

Server Error

Error

Delete all my user associations​

DEL /me/associations

This API is used to delete all associations of the authenticated user.

Scope(Permission) required: internal_login

Responses

CodeDescriptionSchema
204

No content

401

Unauthorized

403

Resource Forbidden

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

NameInTypeRequiredDescription
associated-user-idpathstringYes

Responses

CodeDescriptionSchema
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

CodeDescriptionSchema
200

Successful operation

array of FederatedAssociation
204

No content

401

Unauthorized

403

Resource Forbidden

500

Server Error

Error

Delete all my federated user associations​

DEL /me/federated-associations

This API is used to delete all the federated associations of the authenticated user.

Scope(Permission) required: internal_login

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Responses

CodeDescriptionSchema
204

No content

401

Unauthorized request

403

Resource Forbidden

404

Not Found

Error
500

Server Error

Error

Schemas​

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestringYes
messagestringYes
descriptionstring
traceIdstring

User​

Type: object

7 properties
NameTypeRequiredDescription
userIdstring
usernamestring
userStoreDomainstring
tenantDomainstring
firstNamestring
lastNamestring
emailstring

FederatedAssociation​

Type: object

3 properties
NameTypeRequiredDescription
idstring
idpIdp
federatedUserIdstring

Idp​

Type: object

4 properties
NameTypeRequiredDescription
idstring
namestring
displayNamestring
imageUrlstring

Property​

Type: object

2 properties
NameTypeRequiredDescription
keystring
valuestring

AssociationUserRequest​

Type: object

3 properties
NameTypeRequiredDescription
userIdstring
passwordstring
propertiesarray of Property

Was this page helpful?