Organization
Read enterprise SSO role mapping policy
Requires a live human browser session and current owner/admin membership in the connection’s active customer organization. API keys are not accepted.
GET
/
api
/
v1
/
authentication
/
sso
/
policy
CSharp (SDK)
using MeetKai.MKA1;
using MeetKai.MKA1.Types.Requests;
var sdk = new SDK();
var res = await sdk.Auth.Orgs.GetSsoPolicyAsync(
security: new GetSsoPolicySecurity() {
SessionCookie = "<YOUR_API_KEY_HERE>",
},
providerId: "<id>"
);
// handle responsefrom meetkai_mka1 import SDK, models
with SDK() as sdk:
res = sdk.auth.orgs.get_sso_policy(security=models.GetSsoPolicySecurity(
session_cookie="<YOUR_API_KEY_HERE>",
), provider_id="<id>")
# Handle response
print(res)import { SDK } from "@meetkai/mka1";
const sdk = new SDK();
async function run() {
const result = await sdk.auth.orgs.getSsoPolicy({
sessionCookie: "<YOUR_API_KEY_HERE>",
}, {
providerId: "<id>",
});
console.log(result);
}
run();package main
import(
"context"
mka1 "github.com/MeetKai/mka1-sdks/go"
"github.com/MeetKai/mka1-sdks/go/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := mka1.New()
res, err := s.Auth.Orgs.GetSsoPolicy(ctx, operations.GetSsoPolicySecurity{
SessionCookie: "<YOUR_API_KEY_HERE>",
}, "<id>", nil)
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}curl --request GET \
--url https://apigw.mka1.com/api/v1/authentication/sso/policy \
--cookie __Secure-mka1-auth-v2.session_token=const options = {method: 'GET', headers: {cookie: '__Secure-mka1-auth-v2.session_token='}};
fetch('https://apigw.mka1.com/api/v1/authentication/sso/policy', 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://apigw.mka1.com/api/v1/authentication/sso/policy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "__Secure-mka1-auth-v2.session_token=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://apigw.mka1.com/api/v1/authentication/sso/policy")
.header("cookie", "__Secure-mka1-auth-v2.session_token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://apigw.mka1.com/api/v1/authentication/sso/policy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = '__Secure-mka1-auth-v2.session_token='
response = http.request(request)
puts response.read_body{
"providerId": "<string>",
"enabled": true,
"groupsClaim": "<string>",
"mappings": [
{
"groupValue": "<string>",
"role": "member"
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Current Better Auth browser or device-login session
Headers
Optional external end-user identifier forwarded by the API gateway.
Query Parameters
Was this page helpful?
⌘I
CSharp (SDK)
using MeetKai.MKA1;
using MeetKai.MKA1.Types.Requests;
var sdk = new SDK();
var res = await sdk.Auth.Orgs.GetSsoPolicyAsync(
security: new GetSsoPolicySecurity() {
SessionCookie = "<YOUR_API_KEY_HERE>",
},
providerId: "<id>"
);
// handle responsefrom meetkai_mka1 import SDK, models
with SDK() as sdk:
res = sdk.auth.orgs.get_sso_policy(security=models.GetSsoPolicySecurity(
session_cookie="<YOUR_API_KEY_HERE>",
), provider_id="<id>")
# Handle response
print(res)import { SDK } from "@meetkai/mka1";
const sdk = new SDK();
async function run() {
const result = await sdk.auth.orgs.getSsoPolicy({
sessionCookie: "<YOUR_API_KEY_HERE>",
}, {
providerId: "<id>",
});
console.log(result);
}
run();package main
import(
"context"
mka1 "github.com/MeetKai/mka1-sdks/go"
"github.com/MeetKai/mka1-sdks/go/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := mka1.New()
res, err := s.Auth.Orgs.GetSsoPolicy(ctx, operations.GetSsoPolicySecurity{
SessionCookie: "<YOUR_API_KEY_HERE>",
}, "<id>", nil)
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}curl --request GET \
--url https://apigw.mka1.com/api/v1/authentication/sso/policy \
--cookie __Secure-mka1-auth-v2.session_token=const options = {method: 'GET', headers: {cookie: '__Secure-mka1-auth-v2.session_token='}};
fetch('https://apigw.mka1.com/api/v1/authentication/sso/policy', 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://apigw.mka1.com/api/v1/authentication/sso/policy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "__Secure-mka1-auth-v2.session_token=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://apigw.mka1.com/api/v1/authentication/sso/policy")
.header("cookie", "__Secure-mka1-auth-v2.session_token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://apigw.mka1.com/api/v1/authentication/sso/policy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = '__Secure-mka1-auth-v2.session_token='
response = http.request(request)
puts response.read_body{
"providerId": "<string>",
"enabled": true,
"groupsClaim": "<string>",
"mappings": [
{
"groupValue": "<string>",
"role": "member"
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}