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": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
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: <authorization>'[
{
"organisation_id": "<string>",
"name": "<string>",
"role": "member",
"slug": "<string>",
"status": "<string>",
"user_current": false
}
]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": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
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: <authorization>'[
{
"organisation_id": "<string>",
"name": "<string>",
"role": "member",
"slug": "<string>",
"status": "<string>",
"user_current": false
}
]Headers
Bearer followed by the identity provider's access token.