Skip to main content

User Account Association API

Download OpenAPI (YAML)Version v1

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

The User Account Association API (version v1).

Download the OpenAPI definition (YAML)

Security schemes​

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_org_user_association_view

Parameters

NameInTypeRequiredDescription
user-idpathstringYes

user id

Responses

CodeDescriptionSchema
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_org_user_association_delete

Parameters

NameInTypeRequiredDescription
user-idpathstringYes

Responses

CodeDescriptionSchema
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_org_user_association_view

Parameters

NameInTypeRequiredDescription
user-idpathstringYes

user id

Responses

CodeDescriptionSchema
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_org_user_association_create

Parameters

NameInTypeRequiredDescription
user-idpathanyYes

user id

Request body (required): application/json

User details to be associated.

Schema: FederatedAssociationRequest

2 properties
NameTypeRequiredDescription
idpstring

Name of the IdP

federatedUserIdstring

User identifier in the federated IdP

Responses

CodeDescriptionSchema
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_org_user_association_delete

Parameters

NameInTypeRequiredDescription
user-idpathstringYes

Responses

CodeDescriptionSchema
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_org_user_association_delete

Parameters

NameInTypeRequiredDescription
user-idpathstringYes
idpathstringYes

Responses

CodeDescriptionSchema
204

No content

401

Unauthorized request

403

Resource Forbidden

404

Not Found

Error
500

Server Error

Error

Create and Delete users associations in bulk​

POST /federated-associations/bulk

This API is used to create and delete users association in bulk.
Maximum number of supported operations in a single request is 1000 by default. It can be configured using a server level configuration. Scope required: * internal_user_fed_association_bulk

Request body: application/json

Schema: BulkFederatedAssociationRequest

2 properties
NameTypeRequiredDescription
failOnErrorsinteger

This represents whether the API should stop processing the operations if any of them fail. The subsequent operations after the fail count is reached will not be processed. If set to 0 or not set, the API will continue processing the operations even if some of them fail.

operationsarray of BulkFederatedAssociationOperation

Responses

CodeDescriptionSchema
200

Success

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server 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

FederatedAssociationRequest​

Type: object

2 properties
NameTypeRequiredDescription
idpstring

Name of the IdP

federatedUserIdstring

User identifier in the federated IdP

BulkFederatedAssociationRequest​

Type: object

2 properties
NameTypeRequiredDescription
failOnErrorsinteger

This represents whether the API should stop processing the operations if any of them fail. The subsequent operations after the fail count is reached will not be processed. If set to 0 or not set, the API will continue processing the operations even if some of them fail.

operationsarray of BulkFederatedAssociationOperation

BulkFederatedAssociationOperation​

Type: object

4 properties
NameTypeRequiredDescription
methodstringYes

HTTP method to be used for the operation. Supported methods are POST and, DELETE. These values If the method is not specified, the operation will be treated as a bad request.

Allowed values: POST, DELETE

bulkIdstringYes
pathstringYes

The path to the resource to be operated on. The path should be relative to the base path of the API. Full path for a federated association operation would be /t/{tenant-domain}/api/users/v1/{user-id}/federated-associations/{association-id}.

dataUserFederatedAssociationData

UserFederatedAssociationData​

Type: object

2 properties
NameTypeRequiredDescription
idpstring

Name of the IdP

federatedUserIdstring

User identifier in the federated IdP

BulkFederatedAssociationResponse​

Type: object

1 property
NameTypeRequiredDescription
Operationsarray of BulkAssociationOperationResponse

BulkAssociationOperationResponse​

Type: object

6 properties
NameTypeRequiredDescription
bulkIdstring
statusobject
status.statusCodeinteger
status.errorCodestring
status.errorMessagestring
status.errorDescriptionstring

Was this page helpful?