List Semantic Layer permission recipients
curl --request GET \
--url https://api.nekt.ai/api/v1/semantic-layer/permission-recipients/ \
--header 'x-api-key: <api-key>'import requests
url = "https://api.nekt.ai/api/v1/semantic-layer/permission-recipients/"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.nekt.ai/api/v1/semantic-layer/permission-recipients/', 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://api.nekt.ai/api/v1/semantic-layer/permission-recipients/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.nekt.ai/api/v1/semantic-layer/permission-recipients/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nekt.ai/api/v1/semantic-layer/permission-recipients/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nekt.ai/api/v1/semantic-layer/permission-recipients/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"groups": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"users": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Semantic Layer
List Semantic Layer Permission Recipients
The users and groups that can still be added to a Semantic Layer resource.
GET
/
api
/
v1
/
semantic-layer
/
permission-recipients
/
List Semantic Layer permission recipients
curl --request GET \
--url https://api.nekt.ai/api/v1/semantic-layer/permission-recipients/ \
--header 'x-api-key: <api-key>'import requests
url = "https://api.nekt.ai/api/v1/semantic-layer/permission-recipients/"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.nekt.ai/api/v1/semantic-layer/permission-recipients/', 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://api.nekt.ai/api/v1/semantic-layer/permission-recipients/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.nekt.ai/api/v1/semantic-layer/permission-recipients/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nekt.ai/api/v1/semantic-layer/permission-recipients/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nekt.ai/api/v1/semantic-layer/permission-recipients/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"groups": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"users": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Same contract as the other two axes: active Members only, ids by default, full objects with
expand, and picker semantics — a recipient who already holds a grant on the resource you name is omitted, so the list never offers a duplicate.
curl --request GET \
--url "https://api.nekt.ai/api/v1/semantic-layer/permission-recipients/?expand=users" \
--header "x-api-key: YOUR_API_KEY"
{
"groups": ["b8c5e1e3-6d02-4f45-ad20-8f4b6e2d0e13"],
"users": ["3f7c1e88-9a41-4b2d-8e5f-6c0a2d4b9e11"]
}
Owners and Admins are absent by design: they bypass the Semantic Layer permission axis entirely, so a grant to them would change nothing.
Was this page helpful?