Organization Me API
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
filter | query | string | Condition to filter the retrieval of records. | |
limit | query | integer (int32) | Maximum number of records to be returned. (Should be greater than 0) | |
after | query | string | Points to the next range of data to be returned. | |
before | query | string | Points to the previous range of data that can be retrieved. | |
recursive | query | boolean | Determines whether a recursive search should happen. Default: | |
authorizedAppName | query | string | Retrieves the organizations that are authorized for the user through the role bound to the application. |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Code | Description | Schema |
|---|---|---|
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
| Code | Description | Schema |
|---|---|---|
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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
name | string | Yes |
OrganizationsResponse
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
links | array of Link | ||
organizations | array of Organization |
Link
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
href | string (uri) | Endpoint that will return the next or previous page of data. | |
rel | string | Describes whether the provided link is to access the next or previous page of data. |
Organization
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
name | string | Yes | |
status | string | Yes | Allowed values: |
version | string | Yes | |
ref | string | Yes |
RootDescendantsOrganizationResponse
Type: array of BasicOrganizationObject
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | An error code. |
message | string | Yes | An error message. |
description | string | An error description. | |
traceId | string | An error trace identifier. |
Was this page helpful?