Skip to main content

List organization roles for the given user and org

GET 

https://app.phasetwo.io/realms/:realm/users/:userId/orgs/:orgId/roles

List organization roles for the given user and org

Request

Path Parameters

    realm stringrequired

    realm name (not id!)

    userId stringrequired

    user id

    orgId stringrequired

    organization id

Responses

success

Schema
  • Array [
  • idstring
    namestring
    descriptionstring
  • ]

Authorization: http

name: access_tokentype: httpscheme: bearerbearerFormat: 
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://app.phasetwo.io/realms/:realm/users/:userId/orgs/:orgId/roles");
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
— pathrequired
— pathrequired
ResponseClear

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