curl --request GET \
--url https://api.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership \
--header 'Authorization: Bearer <token>' \
--header 'x-organization-id: <x-organization-id>'import requests
url = "https://api.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership"
headers = {
"x-organization-id": "<x-organization-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-organization-id': '<x-organization-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership', 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.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership",
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>",
"x-organization-id: <x-organization-id>"
],
]);
$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.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-organization-id", "<x-organization-id>")
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://api.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership")
.header("x-organization-id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-organization-id"] = '<x-organization-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"personId": "user-550e8400-e29b-41d4-a716-446655440000",
"organizationId": "550e8400-e29b-41d4-a716-446655440000",
"active": true,
"profile": {
"name": "John Doe",
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"middleName": "Michael",
"phone": "+12025551234",
"mobilePhone": "+12025555678",
"workAddress": {
"type": "work",
"streetAddress": "100 Universal City Plaza",
"locality": "Hollywood",
"region": "CA",
"postalCode": "91608",
"country": "USA",
"primary": true
},
"jobTitle": "Senior Software Engineer",
"department": "Engineering",
"division": "Product Development",
"costCenter": "CC-1234",
"employeeNumber": "E12345",
"userType": "Employee",
"manager": {
"id": "01914b4a-6fd7-7c5e-b343-6a7105f9e632",
"name": "Jane Smith",
"email": "jane.smith@example.com"
},
"locale": "en-US",
"timezone": "America/New_York",
"preferredLanguage": "en",
"customAttributes": {
"urn:okta:custom:1.0:user:slackId": "U123456",
"extension_azure_TeamsId": "T789012"
},
"metadata": {
"department": "Engineering",
"title": "Senior Developer"
}
},
"createdAt": "2025-10-01T00:00:00.000Z",
"updatedAt": "2025-10-01T12:00:00.000Z",
"importSource": "SCIM",
"accessGrantType": "DIRECT",
"stickyAttributes": {
"sourceType": "SCIM",
"manualOverrides": {
"department": "Engineering",
"title": "Senior Developer"
},
"overrideMetadata": {},
"localAttributes": {
"riskScore": "medium",
"tags": [
"contractor"
]
},
"scimSyncExcluded": false,
"overriddenFields": [
"department",
"title"
],
"displayAttributes": {}
},
"role": "OWNER",
"roleDisplayName": "Owner",
"roleIds": [
"MANAGER",
"role-123"
]
}{
"statusCode": 404,
"message": "Resource not found",
"error": "Not Found"
}Get person membership details
Retrieve membership information for a specific person. Organization context provided via x-organization-id header.
curl --request GET \
--url https://api.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership \
--header 'Authorization: Bearer <token>' \
--header 'x-organization-id: <x-organization-id>'import requests
url = "https://api.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership"
headers = {
"x-organization-id": "<x-organization-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-organization-id': '<x-organization-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership', 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.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership",
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>",
"x-organization-id: <x-organization-id>"
],
]);
$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.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-organization-id", "<x-organization-id>")
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://api.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership")
.header("x-organization-id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.us-east-1.livingsecurity.ai/api/v1/people/{personId}/membership")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-organization-id"] = '<x-organization-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"personId": "user-550e8400-e29b-41d4-a716-446655440000",
"organizationId": "550e8400-e29b-41d4-a716-446655440000",
"active": true,
"profile": {
"name": "John Doe",
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"middleName": "Michael",
"phone": "+12025551234",
"mobilePhone": "+12025555678",
"workAddress": {
"type": "work",
"streetAddress": "100 Universal City Plaza",
"locality": "Hollywood",
"region": "CA",
"postalCode": "91608",
"country": "USA",
"primary": true
},
"jobTitle": "Senior Software Engineer",
"department": "Engineering",
"division": "Product Development",
"costCenter": "CC-1234",
"employeeNumber": "E12345",
"userType": "Employee",
"manager": {
"id": "01914b4a-6fd7-7c5e-b343-6a7105f9e632",
"name": "Jane Smith",
"email": "jane.smith@example.com"
},
"locale": "en-US",
"timezone": "America/New_York",
"preferredLanguage": "en",
"customAttributes": {
"urn:okta:custom:1.0:user:slackId": "U123456",
"extension_azure_TeamsId": "T789012"
},
"metadata": {
"department": "Engineering",
"title": "Senior Developer"
}
},
"createdAt": "2025-10-01T00:00:00.000Z",
"updatedAt": "2025-10-01T12:00:00.000Z",
"importSource": "SCIM",
"accessGrantType": "DIRECT",
"stickyAttributes": {
"sourceType": "SCIM",
"manualOverrides": {
"department": "Engineering",
"title": "Senior Developer"
},
"overrideMetadata": {},
"localAttributes": {
"riskScore": "medium",
"tags": [
"contractor"
]
},
"scimSyncExcluded": false,
"overriddenFields": [
"department",
"title"
],
"displayAttributes": {}
},
"role": "OWNER",
"roleDisplayName": "Owner",
"roleIds": [
"MANAGER",
"role-123"
]
}{
"statusCode": 404,
"message": "Resource not found",
"error": "Not Found"
}Avtorizatsiyalar
Short-lived bearer access token issued for a Living Security API access key. Send as Authorization: Bearer .
Sarlavhalar
Organization context for multi-tenant operations
Yo'l parametrlari
Javob
Membership details found successfully
Unique membership identifier
"550e8400-e29b-41d4-a716-446655440000"
Person ID associated with this membership
"user-550e8400-e29b-41d4-a716-446655440000"
Organization ID for this membership
"550e8400-e29b-41d4-a716-446655440000"
Whether the membership is currently active
true
Person profile data (name, email, etc.)
Show child attributes
Show child attributes
Membership creation timestamp
"2025-10-01T00:00:00.000Z"
Membership last update timestamp
"2025-10-01T12:00:00.000Z"
How the user was provisioned (SCIM, CSV, or MANUAL)
SCIM, CSV, MANUAL "SCIM"
How access was granted (DIRECT, PARENT_ORG, or PLATFORM)
DIRECT, PARENT_ORG, PLATFORM "DIRECT"
Sticky attributes (overrides, local attributes, sync status)
Show child attributes
Show child attributes
Primary role identifier. Can be a system role type (OWNER, ADMIN, MEMBER), catalog role ID, or custom role ID based on precedence (system > catalog > custom)
"OWNER"
Human-friendly role display name
"Owner"
Array of ALL role identifiers assigned to this member. Includes system role types (OWNER, ADMIN, etc.), catalog role IDs, and custom role IDs.
["MANAGER", "role-123"]
Bu sahifa foydali bo'ldimi?

