curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token='import requests
url = "https://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token=', 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://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"results": [
{
"_id": "d0a72e51-728e-4a1d-9a5c-13796122b6f8",
"acl": [
"business_user",
"advanced_reports"
],
"createType": "scim",
"description": "Users with administrative rights for the organization",
"displayName": [
{
"language": "en",
"value": "Organization Administrators"
},
{
"language": "es",
"value": "Administradores de la Organización"
}
],
"edition": "business",
"name": "d0a72e51-728e-4a1d-9a5c-13796122b6f8",
"organization": "d1b33e20-715e-441d-145c-a0796122b6e0",
"organizationGroups": {
"admin": "e378ef19-3c07-4105-91db-2593b6a443a5",
"prepare": "a1c03148-9473-4ae3-95ed-e9b4acc414f0",
"read": "2d884a07-e21e-4773-89db-ebc3c9399b90",
"sign": "54f88bff-234e-4da6-91c9-f7ab818d2898",
"user": "fe2f70e8-367e-4aa5-8ea3-81dd74d60914"
},
"subscription": "zufpYZUBmvIz_dFpis9r",
"type": [
"organization"
],
"version": 3
}
],
"total": 3
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}List the groups that grant a right
GET /groups/havingRight/{rightname}
Returns the groups that grant the given right to their members, which is how an administration screen answers “who may do this” - for example which groups may read or edit documents of one metadata definition, or take a particular workflow transition.
The answer is assembled through the permission chain: the named right is looked up, then every ACL that carries it, and finally the groups that carry any of those ACLs. A caller who belongs to an organization sees only rights marked as allowed for organizations, and only groups of their own organization. A right that no ACL carries, or a name that matches no right at all, is not an error - the result is simply empty.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user rights: view_groups
Required user role: admin or organization_admin
curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token='import requests
url = "https://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token=', 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://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/groups/havingRight/{rightname}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"results": [
{
"_id": "d0a72e51-728e-4a1d-9a5c-13796122b6f8",
"acl": [
"business_user",
"advanced_reports"
],
"createType": "scim",
"description": "Users with administrative rights for the organization",
"displayName": [
{
"language": "en",
"value": "Organization Administrators"
},
{
"language": "es",
"value": "Administradores de la Organización"
}
],
"edition": "business",
"name": "d0a72e51-728e-4a1d-9a5c-13796122b6f8",
"organization": "d1b33e20-715e-441d-145c-a0796122b6e0",
"organizationGroups": {
"admin": "e378ef19-3c07-4105-91db-2593b6a443a5",
"prepare": "a1c03148-9473-4ae3-95ed-e9b4acc414f0",
"read": "2d884a07-e21e-4773-89db-ebc3c9399b90",
"sign": "54f88bff-234e-4da6-91c9-f7ab818d2898",
"user": "fe2f70e8-367e-4aa5-8ea3-81dd74d60914"
},
"subscription": "zufpYZUBmvIz_dFpis9r",
"type": [
"organization"
],
"version": 3
}
],
"total": 3
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}