Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Attribute management API

Download OpenAPI (YAML)Version v1

Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/api/server/v1

The WSO2 Identity Platform Attribute Management API (version v1).

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

authorizationCode flow, token URL https://api.asgardeo.io/t/{organization-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{organization-name}/oauth2/authorize

Claims (local)​

Retrieve local claims.​

GET /claim-dialects/local/claims

Retrieve local claims. </br></br>Scope(Permission) required: internal_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.

profilequerystring

The claims belong to the given profile. This is used to filter claims based on the profile.
Available profiles:

<ul> <li>console</li> <li>endUser</li> <li>selfRegistration</li> </ul>
exclude-identity-claimsqueryboolean

Exclude identity claims when listing local claims.

exclude-hidden-claimsqueryboolean

Exclude hidden claims when listing local claims.

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_claim_meta_create

Request body: application/json

Local claim to be added.

Schema: LocalClaimReq

16 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.

dataTypestring

The data type of the attribute.

Allowed values: string, boolean, date_time, integer, complex, decimal

subAttributesarray of string

The sub attributes of the complex attribute.

canonicalValuesarray of LabelValue

The possible values for the attribute.

multiValuedboolean

Specifies if the claim can hold multiple values or not.

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 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 a local claim.​

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

Retrieve a local claim matching the given claim ID. </br></br>Scope(Permission) required: internal_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.​

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

Update a local claim. </br></br> Scope(Permission) required: internal_claim_meta_update

Parameters

NameInTypeRequiredDescription
claim-idpathstringYes

Id of the claim.

Request body: application/json

Updated local claim.

Schema: LocalClaimReq

16 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.

dataTypestring

The data type of the attribute.

Allowed values: string, boolean, date_time, integer, complex, decimal

subAttributesarray of string

The sub attributes of the complex attribute.

canonicalValuesarray of LabelValue

The possible values for the attribute.

multiValuedboolean

Specifies if the claim can hold multiple values or not.

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 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. </br></br> Scope(Permission) required: internal_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

Claim dialects​

Retrieve claim dialects.​

GET /claim-dialects

Retrieve claim dialects. </br></br> Scope(Permission) required: internal_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

Add a claim dialect.​

POST /claim-dialects

Add a new claim dialect. </br></br> Scope(Permission) required:internal_claim_meta_create

Request body: application/json

claim dialect to add.

Schema: ClaimDialectReq

1 property
NameTypeRequiredDescription
dialectURIstringYes

URI of the claim dialect.

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 a claim dialect.​

GET /claim-dialects/{dialect-id}

Retrieve a claim dialect matching the given dialect id. </br></br>Scope(Permission) required: internal_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

Update a claim dialect.​

PUT /claim-dialects/{dialect-id}

Update a claim dialect. </br></br> Scope(Permission) required:internal_claim_meta_update

Parameters

NameInTypeRequiredDescription
dialect-idpathstringYes

Id of the claim dialect.

Request body: application/json

Updated claim dialect.

Schema: ClaimDialectReq

1 property
NameTypeRequiredDescription
dialectURIstringYes

URI of the claim dialect.

Responses

CodeDescriptionSchema
200

OK.

400

Invalid input request.

Error
401

Unauthorized.

403

Resource Forbidden.

500

Internal Server Error.

Error

Delete a claim dialect.​

DEL /claim-dialects/{dialect-id}

Delete a claim dialect by claim ID. </br></br> Scope(Permission) required: internal_claim_meta_delete

Parameters

NameInTypeRequiredDescription
dialect-idpathstringYes

Id of the claim dialect.

Responses

CodeDescriptionSchema
204

No Content.

400

Invalid input request.

Error
401

Unauthorized.

403

Resource Forbidden.

500

Internal Server Error.

Error

Export a claim dialect with claims.​

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

Retrieve a claim dialect for a given dialect ID along with all related claims as a XML, YAML, or JSON file. </br></br> Scope(Permission) required: internal_claim_meta_view

Parameters

NameInTypeRequiredDescription
dialect-idpathstringYes

Id of the claim dialect.

Acceptheaderstring

Content type of the file.

Allowed values: application/json, application/xml, application/yaml, application/x-yaml, text/yaml, text/xml, text/json. Default: application/yaml

Responses

CodeDescriptionSchema
200

Successful response

string
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 claim dialect with claims.​

PUT /claim-dialects/import

Update a claim dialect and all related claims from a file in XML, YAML, or JSON format. </br></br> Scope(Permission) required: internal_claim_meta_create

Parameters

NameInTypeRequiredDescription
preserveClaimsqueryboolean

Specify whether to merge and preserve the claims or completely replace the existing claims set.

Default: false

Request body: multipart/form-data

Schema: FileUpload

1 property
NameTypeRequiredDescription
filestring (binary)

This file represents the claim dialect.

Responses

CodeDescriptionSchema
201

Item Created.

400

Invalid input request.

Error
401

Unauthorized.

403

Resource Forbidden.

500

Internal Server Error.

Error

Import an external claim dialect with claims.​

POST /claim-dialects/import

Import a external claim dialect with related claims from a file in XML, YAML, or JSON format. </br> Scope(Permission) required: internal_claim_meta_create

Request body (required): multipart/form-data

Schema: FileUpload

1 property
NameTypeRequiredDescription
filestring (binary)

This file represents the claim dialect.

Responses

CodeDescriptionSchema
201

Item Created.

400

Invalid input request.

Error
401

Unauthorized.

403

Resource Forbidden.

500

Internal Server Error.

Error

Claims (external)​

Retrieve external claims.​

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

Retrieve External claims.</br></br>Scope(Permission) required: internal_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

Claims (External)​

Add an external claim.​

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

Add a new external claim. </br></br> Scope(Permission) required: internal_claim_meta_create

Parameters

NameInTypeRequiredDescription
dialect-idpathstringYes

Id of the claim dialect.

Request body: application/json

External claim to add.

Schema: ExternalClaimReq

2 properties
NameTypeRequiredDescription
claimURIstringYes

Claim URI of the external claim.

mappedLocalClaimURIstringYes

The local claim URI to map with the external claim.

Responses

CodeDescriptionSchema
201

Item Created.

400

Invalid input request.

Error
401

Unauthorized.

403

Resource Forbidden.

404

The specified resource is not found.

Error
409

Element Already Exists.

Error
500

Internal Server Error.

Error

Retrieve an external claim.​

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

Retrieve an external claim matching the given dialect ID and claim ID. </br></br> Scope(Permission) required: internal_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

Update an external claim.​

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

Update an external claim. </br></br> Scope(Permission) required: internal_claim_meta_update

Parameters

NameInTypeRequiredDescription
dialect-idpathstringYes

Id of the claim dialect.

claim-idpathstringYes

Id of the claim.

Request body: application/json

Updated external claim.

Schema: ExternalClaimReq

2 properties
NameTypeRequiredDescription
claimURIstringYes

Claim URI of the external claim.

mappedLocalClaimURIstringYes

The local claim URI to map with the external claim.

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 an external claim.​

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

Delete a claim by dialect ID and claim ID. </br></br>Scope(Permission) required: internal_claim_meta_delete

Parameters

NameInTypeRequiredDescription
dialect-idpathstringYes

Id of the claim dialect.

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

Schemas​

LocalClaimReq​

Type: object

Local claim request.

16 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.

dataTypestring

The data type of the attribute.

Allowed values: string, boolean, date_time, integer, complex, decimal

subAttributesarray of string

The sub attributes of the complex attribute.

canonicalValuesarray of LabelValue

The possible values for the attribute.

multiValuedboolean

Specifies if the claim can hold multiple values or not.

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 AttributeMappingYes

Userstore attribute mappings.

propertiesarray of Property

Define any additional properties if required.

LocalClaimRes​

Type: object

Local claim response.

19 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.

dataTypestring

The data type of the attribute.

Allowed values: string, boolean, date_time, integer, complex, decimal

subAttributesarray of string

The sub attributes of the complex attribute.

canonicalValuesarray of LabelValue

The possible values for the attribute.

multiValuedboolean

Specifies if the claim can hold multiple values or not.

inputFormatInputFormat

The input formatting of the attribute.

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 userstore attribute mapping.

2 properties
NameTypeRequiredDescription
mappedAttributestringYes

Userstore attribute to be mapped to.

userstorestringYes

Userstore domain name.

ClaimDialectReq​

Type: object

Claim dialect request.

1 property
NameTypeRequiredDescription
dialectURIstringYes

URI of the claim dialect.

ClaimDialectRes​

Type: object

Claim dialect response.

3 properties
NameTypeRequiredDescription
idstring

Dialect id.

dialectURIstring

URI of the claim dialect.

linkLink

ExternalClaimReq​

Type: object

External claim request.

2 properties
NameTypeRequiredDescription
claimURIstringYes

Claim URI of the external claim.

mappedLocalClaimURIstringYes

The local claim URI to map with the external claim.

ExternalClaimRes​

Type: object

External claim response.

4 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.

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.

LabelValue​

Type: object

2 properties
NameTypeRequiredDescription
labelstringYes

The display name shown to the user.

valuestringYes

The internal value used in processing.

InputFormat​

Type: object

The input formatting of the attribute.

1 property
NameTypeRequiredDescription
inputTypestring

Type of the input format (e.g., dropdown, checkbox, etc.)

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestringYes
messagestringYes
descriptionstring
traceIdstring

FileUpload​

Type: object

1 property
NameTypeRequiredDescription
filestring (binary)

This file represents the claim dialect.

Was this page helpful?