Skip to main content

Get orgs and roles for authenticated user

GET 

https://app.phasetwo.io/realms/:realm/orgs/me

Get a list of all organizations that the user is a member and their roles in those organizations. Similar idea to /userinfo in OIDC.

Request

Responses

success

Authorization: http

name: access_tokentype: httpscheme: bearerbearerFormat: 
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://app.phasetwo.io/realms/:realm/orgs/me");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://app.phasetwo.io/realms
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!