Get Organization roles of OrgID of user UID
GEThttps://api.loginradius.com/v2/manage/account/:uid/orgcontext/:orgid
This API is used to get the user roles of an organization by UID and OrgID.
Request
Responses
- 200
- 400
- 403
- 404
- 500
OK: The request was successful.
Bad Request: The request could not be understood by the server due to malformed syntax.
Forbidden: The client does not have permission to access the resource.
Not Found: The requested resource could not be found.
Internal Server Error: The server encountered an unexpected error.
Authorization: X-LoginRadius-APIKey
name: X-LoginRadius-APIKeytype: apiKeyin: headerdescription: Tenant api key for authentication
name: X-LoginRadius-APISecrettype: apiKeyin: headerdescription: Tenant api secret for authentication
ResponseClear
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.loginradius.com/v2/manage/account/:uid/orgcontext/:orgid");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("X-LoginRadius-APIKey", "<apiKey>");
request.Headers.Add("X-LoginRadius-APISecret", "<apiKey>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());