Get user organizations
This API returns two list of organizations for the user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain
Path Parameters
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
Schema
organizations object[]
joinable_via_domain object[]
{
"organizations": [
{
"id": "string",
"name": "string",
"title": "string",
"metadata": {},
"created_at": "2023-06-07T05:39:56.961Z",
"updated_at": "2023-06-07T05:39:56.961Z",
"state": "enabled",
"avatar": "string"
}
],
"joinable_via_domain": [
{
"id": "string",
"name": "string",
"title": "string",
"metadata": {},
"created_at": "2023-06-07T05:39:56.961Z",
"updated_at": "2023-06-07T05:39:56.961Z",
"state": "enabled",
"avatar": "string"
}
]
}
Bad Request - The request was malformed or contained invalid parameters.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
GET /v1beta1/users/:id/organizations
Authorization
name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic
Request
Request
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/users/:id/organizations' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/users/:id/organizations' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/users/:id/organizations' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/users/:id/organizations' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/users/:id/organizations' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/users/:id/organizations' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/users/:id/organizations' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/users/:id/organizations' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/users/:id/organizations' \
-H 'Accept: application/json'