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

Claim management API

Download OpenAPI (YAML)Version v1

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

The Claim Management 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
ScopeDescription
readGrants read access
writeGrants write access
adminGrants read and write access to administrative information

management​

Secured Admin-only calls

Retrieve local claims​

GET /claim-dialects/local/claims

Retrieve local claims.

Scope(Permission) required: internal_org_claim_meta_view

Parameters

NameInTypeRequiredDescription
attributesquerystring

Define only the required attributes to be sent in the response object.
This option is not yet supported.

limitqueryinteger (int32)

Maximum number of records to return.
This option is not yet supported.

offsetqueryinteger (int32)

Number of records to skip for pagination.
This option is not yet supported.

filterquerystring

Condition to filter the retrieval of records.
This option is not yet supported.

sortquerystring

Define the order by which the retrieved records should be sorted.
This option is not yet supported.

Responses

CodeDescriptionSchema
200

Local claims.

array of LocalClaimRes
401

Unauthorized.

500

Internal Server Error.

Error
501

Not Implemented.

Error

Add a local claim​

POST /claim-dialects/local/claims

Add a new claim.

Scope(Permission) required: internal_org_claim_meta_create

Request body: application/json

Local claim to be added.

Schema: LocalClaimReq

11 properties
NameTypeRequiredDescription
claimURIstringYes

A unique URI specific to the claim.

descriptionstringYes

Description of the claim.

displayOrderinteger

The order in which the claim is displayed among other claims under the same dialect.

displayNamestringYes

Name of the claim to be displayed in the UI.

readOnlyboolean

Specifies if the claim is read-only.

regExstring

Regular expression used to validate inputs.

requiredboolean

Specifies if the claim is required for user registration.

supportedByDefaultboolean

Specifies if the claim will be prompted during user registration and displayed on the user profile.

uniquenessScopestring

Specifies the scope of uniqueness validation for the claim value.

Allowed values: NONE, WITHIN_USERSTORE, ACROSS_USERSTORES

attributeMappingarray of AttributeMappingYes

Userstore attribute mappings.

propertiesarray of Property

Define any additional properties if required.

Responses

CodeDescriptionSchema
201

Item Created.

400

Invalid input request.

Error
401

Unauthorized.

403

Resource Forbidden.

409

Element Already Exists.

Error
500

Internal Server Error.

Error

Retrieve local claim by ID​

GET /claim-dialects/local/claims/{claim-id}

Retrieve a local claim matching the given claim ID.

Scope(Permission) required: internal_org_claim_meta_view

Parameters

NameInTypeRequiredDescription
claim-idpathstringYes

Id of the claim.

Responses

CodeDescriptionSchema
200

Requested claim.

LocalClaimRes
400

Invalid input request.

Error
401

Unauthorized.

403

Resource Forbidden.

404

The specified resource is not found.

Error
500

Internal Server Error.

Error

Update a local claim by ID​

PUT /claim-dialects/local/claims/{claim-id}

Update a local claim.

Scope(Permission) required: internal_org_claim_meta_update

Parameters

NameInTypeRequiredDescription
claim-idpathstringYes

Id of the claim.

Request body: application/json

Updated local claim.

Schema: LocalClaimReq

11 properties
NameTypeRequiredDescription
claimURIstringYes

A unique URI specific to the claim.

descriptionstringYes

Description of the claim.

displayOrderinteger

The order in which the claim is displayed among other claims under the same dialect.

displayNamestringYes

Name of the claim to be displayed in the UI.

readOnlyboolean

Specifies if the claim is read-only.

regExstring

Regular expression used to validate inputs.

requiredboolean

Specifies if the claim is required for user registration.

supportedByDefaultboolean

Specifies if the claim will be prompted during user registration and displayed on the user profile.

uniquenessScopestring

Specifies the scope of uniqueness validation for the claim value.

Allowed values: NONE, WITHIN_USERSTORE, ACROSS_USERSTORES

attributeMappingarray of AttributeMappingYes

Userstore attribute mappings.

propertiesarray of Property

Define any additional properties if required.

Responses

CodeDescriptionSchema
200

OK.

400

Invalid input request.

Error
401

Unauthorized.

403

Resource Forbidden.

409

Element Already Exists.

Error
500

Internal Server Error.

Error

Delete a local claim​

DEL /claim-dialects/local/claims/{claim-id}

Delete a claim by claim ID. Only custom claims can be deleted.

Scope(Permission) required: internal_org_claim_meta_delete

Parameters

NameInTypeRequiredDescription
claim-idpathstringYes

Id of the claim.

Responses

CodeDescriptionSchema
204

No Content.

400

Invalid input request.

Error
401

Unauthorized.

403

Resource Forbidden.

500

Internal Server Error.

Error

Retrieve claim dialects​

GET /claim-dialects

Retrieve claim dialects.

Scope(Permission) required: internal_org_claim_meta_view

Parameters

NameInTypeRequiredDescription
limitqueryinteger (int32)

Maximum number of records to return.
This option is not yet supported.

offsetqueryinteger (int32)

Number of records to skip for pagination.
This option is not yet supported.

filterquerystring

Condition to filter the retrieval of records.
This option is not yet supported.

sortquerystring

Define the order by which the retrieved records should be sorted.
This option is not yet supported.

Responses

CodeDescriptionSchema
200

Claim dialects.

array of ClaimDialectRes
401

Unauthorized.

500

Internal Server Error.

Error
501

Not Implemented.

Error

Retrieve claim dialect​

GET /claim-dialects/{dialect-id}

Retrieve a claim dialect matching the given dialect id.

Scope(Permission) required: internal_org_claim_meta_view

Parameters

NameInTypeRequiredDescription
dialect-idpathstringYes

Id of the claim dialect.

Responses

CodeDescriptionSchema
200

Requested claim dialect.

ClaimDialectRes
400

Invalid input request.

Error
401

Unauthorized.

403

Resource Forbidden.

404

The specified resource is not found.

Error
500

Internal Server Error.

Error

Retrieve external claims​

GET /claim-dialects/{dialect-id}/claims

Retrieve External claims.

Scope(Permission) required: internal_org_claim_meta_view

Parameters

NameInTypeRequiredDescription
dialect-idpathstringYes

Id of the claim dialect.

limitqueryinteger (int32)

Maximum number of records to return.
This option is not yet supported.

offsetqueryinteger (int32)

Number of records to skip for pagination.
This option is not yet supported.

filterquerystring

Condition to filter the retrieval of records.
This option is not yet supported.

sortquerystring

Define the order by which the retrieved records should be sorted.
This option is not yet supported.

Responses

CodeDescriptionSchema
200

External claims.

array of ExternalClaimRes
401

Unauthorized.

404

The specified resource is not found.

Error
500

Internal Server Error.

Error
501

Not Implemented.

Error

Retrieve external claim​

GET /claim-dialects/{dialect-id}/claims/{claim-id}

Retrieve an external claim matching the given dialect ID and claim ID.

Scope(Permission) required: internal_org_claim_meta_view

Parameters

NameInTypeRequiredDescription
dialect-idpathstringYes

ID of the claim dialect.

claim-idpathstringYes

ID of the claim.

Responses

CodeDescriptionSchema
200

Requested claim.

ExternalClaimRes
400

Invalid input request.

Error
401

Unauthorized.

403

Resource Forbidden.

404

The specified resource is not found.

Error
500

Internal Server Error.

Error

Schemas​

LocalClaimReq​

Type: object

Local claim request.

11 properties
NameTypeRequiredDescription
claimURIstringYes

A unique URI specific to the claim.

descriptionstringYes

Description of the claim.

displayOrderinteger

The order in which the claim is displayed among other claims under the same dialect.

displayNamestringYes

Name of the claim to be displayed in the UI.

readOnlyboolean

Specifies if the claim is read-only.

regExstring

Regular expression used to validate inputs.

requiredboolean

Specifies if the claim is required for user registration.

supportedByDefaultboolean

Specifies if the claim will be prompted during user registration and displayed on the user profile.

uniquenessScopestring

Specifies the scope of uniqueness validation for the claim value.

Allowed values: NONE, WITHIN_USERSTORE, ACROSS_USERSTORES

attributeMappingarray of AttributeMappingYes

Userstore attribute mappings.

propertiesarray of Property

Define any additional properties if required.

LocalClaimRes​

Type: object

Local claim response.

14 properties
NameTypeRequiredDescription
idstring

claim ID.

claimURIstring

A unique URI specific to the claim.

dialectURIstring

URI of the claim dialect.

descriptionstring

Description of the claim.

displayOrderinteger

The order in which the claim is displayed among other claims under the same dialect.

displayNamestring

Name of the claim to be displayed in the UI.

readOnlyboolean

Specifies if the claim is read-only.

regExstring

Regular expression used to validate inputs.

requiredboolean

Specifies if the claim is required for user registration.

supportedByDefaultboolean

Specifies if the claim will be prompted during user registration and displayed on the user profile.

uniquenessScopestring

Specifies the scope of uniqueness validation for the claim value.

Allowed values: NONE, WITHIN_USERSTORE, ACROSS_USERSTORES

sharedProfileValueResolvingMethodstring

Specifies claim value resolving method for shared user profile.

Allowed values: FromOrigin, FromSharedProfile, FromFirstFoundInHierarchy

attributeMappingarray of AttributeMapping

Userstore attribute mappings.

propertiesarray of Property

Define any additional properties if required.

AttributeMapping​

Type: object

Claim user store attribute mapping.

2 properties
NameTypeRequiredDescription
mappedAttributestringYes

Userstore attribute to be mapped to.

userstorestringYes

Userstore domain name.

ClaimDialectRes​

Type: object

Claim dialect response.

3 properties
NameTypeRequiredDescription
idstring

Dialect id.

dialectURIstring

URI of the claim dialect.

linkLink

ExternalClaimRes​

Type: object

External claim response.

5 properties
NameTypeRequiredDescription
idstring

External claim ID.

claimURIstring

Claim URI of the external claim.

claimDialectURIstring

Dialect URI of the external claim.

mappedLocalClaimURIstring

The local claim URI to map with the external claim.

propertiesarray of Property

Define any additional properties if required.

Property​

Type: object

2 properties
NameTypeRequiredDescription
keystringYes
valuestringYes

Type: object

2 properties
NameTypeRequiredDescription
hrefstring

Relative path to the target resource.

relstring

Describes how the current context is related to the target resource.

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestringYes
messagestringYes
descriptionstring
traceIdstring

Was this page helpful?