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.

Organization discovery API

Download OpenAPI (YAML)Version v1

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

The Organization Discovery 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

Organization Discovery​

Get discovery attributes of organizations.​

GET /organizations/discovery

This API facilitates the retrieval of discovery attributes of organizations in the hierarchy, allowing filtering by discovery attribute type and value. It currently provides the capability to retrieve these attributes from only the primary organization.

Scope(Permission) required: internal_organization_discovery_view

Parameters

NameInTypeRequiredDescription
filterquerystring

Condition to filter the retrieval of records.

offsetqueryinteger (int32)

Number of records to skip for pagination.

limitqueryinteger (int32)

Maximum number of records to be returned. (Should be greater than 0)

Responses

CodeDescriptionSchema
200

Successful response

OrganizationsDiscoveryResponse
400

Invalid input in the request.

Error
401

Authentication information is missing or invalid.

403

Access forbidden.

500

Internal server error.

Error
501

Not Implemented.

Error

Map discovery attributes to the organization.​

POST /organizations/discovery

This API serves the purpose of adding discovery attributes to an organization, with the current restriction that only the primary organization has the capability to perform this action.

Scope(Permission) required: internal_organization_discovery_update

Request body (required): application/json

This represents the organization discovery attributes to be added.

Schema: OrganizationDiscoveryPostRequest

2 properties
NameTypeRequiredDescription
organizationIdstringYes

The ID of the organization whose discovery attributes are to be added.

attributesarray of DiscoveryAttributeYes

Responses

CodeDescriptionSchema
201

Successful response

OrganizationDiscoveryAttributes
400

Invalid input in the request.

Error
401

Authentication information is missing or invalid.

403

Access forbidden.

500

Internal server error.

Error

Get discovery attributes of the organization.​

GET /organizations/{organization-id}/discovery

This API facilitates the retrieval of discovery attributes for an organization. It currently provides the capability to retrieve these attributes only from the primary organization.

Scope(Permission) required: internal_organization_discovery_view

Parameters

NameInTypeRequiredDescription
organization-idpathstringYes

ID of the organization whose discovery attributes are to be fetched.

Responses

CodeDescriptionSchema
200

Successful response

OrganizationDiscoveryAttributes
400

Invalid input in the request.

Error
401

Authentication information is missing or invalid.

403

Access forbidden.

404

Requested resource is not found.

Error
500

Internal server error.

Error
501

Not Implemented.

Error

Update discovery attributes of an organization.​

PUT /organizations/{organization-id}/discovery

This API serves the purpose of updating discovery attributes of an organization, with the current restriction that only the primary organization has the capability to perform this action.

Scope(Permission) required: internal_organization_discovery_update

Parameters

NameInTypeRequiredDescription
organization-idpathstringYes

ID of the organization whose discovery attributes are to be updated.

Request body (required): application/json

Schema: OrganizationDiscoveryAttributes

1 property
NameTypeRequiredDescription
attributesarray of DiscoveryAttributeYes

Responses

CodeDescriptionSchema
200

Successful response

OrganizationDiscoveryAttributes
400

Invalid input in the request.

Error
401

Authentication information is missing or invalid.

403

Access forbidden.

404

Requested resource is not found.

Error
500

Internal server error.

Error

Delete discovery attributes of an organization.​

DEL /organizations/{organization-id}/discovery

This API serves the purpose of deleting discovery attributes of an organization, with the current restriction that only the primary organization has the capability to perform this action.

Scope(Permission) required: internal_organization_discovery_delete

Parameters

NameInTypeRequiredDescription
organization-idpathstringYes

ID of the organization whose discovery attributes are to be deleted.

Responses

CodeDescriptionSchema
204

Successfully deleted

400

Invalid input in the request.

Error
401

Authentication information is missing or invalid.

403

Access forbidden.

500

Internal server error.

Error

Check whether given discovery attribute exists among the organization hierarchy.​

POST /organizations/check-discovery

This API is used to verify whether a specific discovery attribute has already been associated with an organization within the hierarchy. It is available for use within any organization in the hierarchy.

Scope(Permission) required: internal_organization_discovery_view

Request body (required): application/json

Schema: OrganizationDiscoveryCheckPOSTRequest

2 properties
NameTypeRequiredDescription
typestringYes
valuestringYes

Responses

CodeDescriptionSchema
200

Successful response

OrganizationDiscoveryCheckPOSTResponse
400

Invalid input in the request.

Error
401

Authentication information is missing or invalid.

403

Access forbidden.

404

Requested resource is not found.

Error
500

Internal server error.

Error

Schemas​

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestringYes

An error code.

messagestringYes

An error message.

descriptionstring

An error description.

traceIdstring

An error trace identifier.

Type: object

2 properties
NameTypeRequiredDescription
hrefstring (uri)

Endpoint that will return the next or previous page of data.

relstring

Describes whether the provided link is to access the next or previous page of data.

OrganizationDiscoveryPostRequest​

Type: object

2 properties
NameTypeRequiredDescription
organizationIdstringYes

The ID of the organization whose discovery attributes are to be added.

attributesarray of DiscoveryAttributeYes

OrganizationDiscoveryAttributes​

Type: object

1 property
NameTypeRequiredDescription
attributesarray of DiscoveryAttributeYes

DiscoveryAttribute​

Type: object

2 properties
NameTypeRequiredDescription
typestringYes
valuesarray of string

OrganizationsDiscoveryResponse​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsinteger
startIndexinteger
countinteger
linksarray of Link
organizationsarray of OrganizationDiscoveryResponse

OrganizationDiscoveryResponse​

Type: object

4 properties
NameTypeRequiredDescription
organizationIdstringYes

The ID of the organization.

organizationNamestringYes

The name of the organization.

orgHandlestringYes

The handle of the organization.

attributesarray of DiscoveryAttributeYes

OrganizationDiscoveryCheckPOSTRequest​

Type: object

2 properties
NameTypeRequiredDescription
typestringYes
valuestringYes

OrganizationDiscoveryCheckPOSTResponse​

Type: object

1 property
NameTypeRequiredDescription
availablebooleanYes

Was this page helpful?