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 Me API

Download OpenAPI (YAML)Version v1

Base URL: https://api.asgardeo.io/t/[object Object]/api/users/v1/me/organizations

The WSO2 Identity Platform - User Organization Management API Definition (version v1).

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

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

me​

Operations for the authenticated user

This API is used to search and retrieve child organizations which are authorized for the user.​

GET /

Retrieve authorized organizations which matches the defined search criteria, if any. Scope(Permission) required: internal_login

Parameters

NameInTypeRequiredDescription
filterquerystring

Condition to filter the retrieval of records.

limitqueryinteger (int32)

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

afterquerystring

Points to the next range of data to be returned.

beforequerystring

Points to the previous range of data that can be retrieved.

recursivequeryboolean

Determines whether a recursive search should happen.

Default: false

authorizedAppNamequerystring

Retrieves the organizations that are authorized for the user through the role bound to the application.

Responses

CodeDescriptionSchema
200

Successful response

OrganizationsResponse
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

Get the root organization of the authenticated user​

GET /root

This API provides the capability to retrieve the root organization of the authenticated user.

Scope(Permission) required: internal_login

Responses

CodeDescriptionSchema
200

Successful Response

RootOrganizationResponse
401

Authentication information is missing or invalid.

403

Access forbidden.

404

Resource is not found.

Error
500

Internal server error.

Error

Get the descendant organizations of the authenticated user's resident organization​

GET /root/descendants

This API provides the capability to retrieve the descendant organizations of the authenticated user's resident organizations. The response includes the organization's id and name from the resident organization to the accessed child organization.

Scope(Permission) required: internal_login

Responses

CodeDescriptionSchema
200

Successful Response

RootDescendantsOrganizationResponse
401

Authentication information is missing or invalid.

403

Access forbidden.

404

Resource is not found.

Error
500

Internal server error.

Error

Schemas​

RootOrganizationResponse​

Type: object

2 properties
NameTypeRequiredDescription
idstringYes
namestringYes

OrganizationsResponse​

Type: object

2 properties
NameTypeRequiredDescription
linksarray of Link
organizationsarray of Organization

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.

Organization​

Type: object

5 properties
NameTypeRequiredDescription
idstringYes
namestringYes
statusstringYes

Allowed values: ACTIVE, DISABLED

versionstringYes
refstringYes

BasicOrganizationObject​

Type: object

2 properties
NameTypeRequiredDescription
idstringYes
namestringYes

RootDescendantsOrganizationResponse​

Type: array of BasicOrganizationObject

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestringYes

An error code.

messagestringYes

An error message.

descriptionstring

An error description.

traceIdstring

An error trace identifier.

Was this page helpful?