List the organisations of the person signed in to Ankra Cloud
import requests
url = "https://platform.ankra.app/api/v1/cloud/me/organisations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/cloud/me/organisations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/cloud/me/organisations \
--header 'Authorization: Bearer <token>'[
{
"name": "<string>",
"org_wide": true,
"organisation_id": "<string>",
"projects": [
{
"is_default": true,
"name": "<string>",
"project_id": "<string>",
"slug": "<string>"
}
],
"projects_enabled": true,
"role": "<string>",
"slug": "<string>",
"status": "<string>",
"user_current": true,
"visible_project_ids": [
"<string>"
]
}
]Organisation IAM
List the organisations of the person signed in to Ankra Cloud
Read-only organisation directory for Ankra Cloud. The credential is the identity provider’s access token of the person, issued for the dedicated directory audience to an authorised Ankra Cloud client; personal access tokens and browser sessions are not accepted. Answers the organisations the person is an active member of, and an empty list for a person with none. No session is created and no organisation is selected.
GET
/
api
/
v1
/
cloud
/
me
/
organisations
List the organisations of the person signed in to Ankra Cloud
import requests
url = "https://platform.ankra.app/api/v1/cloud/me/organisations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/cloud/me/organisations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/cloud/me/organisations \
--header 'Authorization: Bearer <token>'[
{
"name": "<string>",
"org_wide": true,
"organisation_id": "<string>",
"projects": [
{
"is_default": true,
"name": "<string>",
"project_id": "<string>",
"slug": "<string>"
}
],
"projects_enabled": true,
"role": "<string>",
"slug": "<string>",
"status": "<string>",
"user_current": true,
"visible_project_ids": [
"<string>"
]
}
]Authorizations
Response
The person's organisations, ordered by name, each with its projects and the ones this person reaches