curl --request GET \
--url https://{region}.api.plerion.com/v1/organization/role-assignments \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.plerion.com/v1/organization/role-assignments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{region}.api.plerion.com/v1/organization/role-assignments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{region}.api.plerion.com/v1/organization/role-assignments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{region}.api.plerion.com/v1/organization/role-assignments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{region}.api.plerion.com/v1/organization/role-assignments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/organization/role-assignments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"principal": {
"type": "group",
"id": "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e"
},
"roleId": "3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90",
"roleScope": "tenant",
"tenantId": "9d0e1f2a-3b4c-4d5e-8f7a-8b9c0d1e2f3a",
"createdAt": "2026-09-16T02:00:00.000Z",
"createdBy": "9f8e7d6c-5b4a-4c3d-8e2f-1a0b9c8d7e6f"
},
{
"principal": {
"type": "user",
"id": "a0b1c2d3-e4f5-4a6b-9c8d-9e0f1a2b3c4d"
},
"roleId": "f68ed9a1-8eb4-443a-8ceb-203fa3d0bc4e",
"roleScope": "organization",
"tenantId": null,
"createdAt": "2026-08-01T00:00:00.000Z",
"createdBy": "60f1a2b3c4d5e6f7a8b9c0d1"
}
],
"meta": {
"cursor": null
}
}{
"errors": [
{
"code": "MissingAssignmentFilter",
"message": "provide userId, groupId or roleId"
}
]
}{
"errors": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
]
}{
"errors": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
]
}List role assignments
Returns the assignments matching exactly one filter: roleId, userId or groupId. A request with no filter answers 400 MissingAssignmentFilter. Page with cursor and perPage; a cursor this list did not issue answers 400 InvalidCursor. A userId listing also includes the built-in roles the user was granted in the Plerion app, with createdAt and createdBy null, since those grants carry no date or author. A role held both ways is listed once.
curl --request GET \
--url https://{region}.api.plerion.com/v1/organization/role-assignments \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.plerion.com/v1/organization/role-assignments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{region}.api.plerion.com/v1/organization/role-assignments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{region}.api.plerion.com/v1/organization/role-assignments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{region}.api.plerion.com/v1/organization/role-assignments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{region}.api.plerion.com/v1/organization/role-assignments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/organization/role-assignments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"principal": {
"type": "group",
"id": "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e"
},
"roleId": "3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90",
"roleScope": "tenant",
"tenantId": "9d0e1f2a-3b4c-4d5e-8f7a-8b9c0d1e2f3a",
"createdAt": "2026-09-16T02:00:00.000Z",
"createdBy": "9f8e7d6c-5b4a-4c3d-8e2f-1a0b9c8d7e6f"
},
{
"principal": {
"type": "user",
"id": "a0b1c2d3-e4f5-4a6b-9c8d-9e0f1a2b3c4d"
},
"roleId": "f68ed9a1-8eb4-443a-8ceb-203fa3d0bc4e",
"roleScope": "organization",
"tenantId": null,
"createdAt": "2026-08-01T00:00:00.000Z",
"createdBy": "60f1a2b3c4d5e6f7a8b9c0d1"
}
],
"meta": {
"cursor": null
}
}{
"errors": [
{
"code": "MissingAssignmentFilter",
"message": "provide userId, groupId or roleId"
}
]
}{
"errors": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
]
}{
"errors": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
]
}Authorizations
Plerion organization API key (plerion_oak_…), created by an organization admin in the Plerion app. GET operations work with a key of either access level; POST, PUT and DELETE require the readWrite access level.
Query Parameters
Every principal holding this role.
Every role this user holds directly. Roles held through a user group are listed under the group.
Every role this user group holds.
The meta.cursor value from the previous page, passed back unchanged. Cursors are opaque and URL-safe.
Items per page, 1 to 1000.
^[1-9][0-9]{0,2}$|^1000$Was this page helpful?