Python
import requests
url = "https://app.langwatch.ai/api/organization/members/{userId}/access"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.langwatch.ai/api/organization/members/{userId}/access', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/organization/members/{userId}/access \
--header 'Authorization: Bearer <token>'{
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"orgRole": "<string>",
"orgRolePermissions": [
"<string>"
]
},
"groups": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"scimSource": "<string>",
"bindings": [
{
"id": "<string>",
"role": "<string>",
"customRoleName": "<string>",
"scopeId": "<string>",
"scopeName": "<string>",
"permissions": [
"<string>"
]
}
]
}
],
"directBindings": [
{
"id": "<string>",
"role": "<string>",
"customRoleName": "<string>",
"scopeId": "<string>",
"scopeName": "<string>",
"permissions": [
"<string>"
]
}
]
}Members
Get member access
The member’s full access breakdown: organization role, group memberships with their bindings, and direct bindings, each with the permissions it grants and the scope it grants them on.
GET
/
api
/
organization
/
members
/
{userId}
/
access
Python
import requests
url = "https://app.langwatch.ai/api/organization/members/{userId}/access"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.langwatch.ai/api/organization/members/{userId}/access', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/organization/members/{userId}/access \
--header 'Authorization: Bearer <token>'{
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"orgRole": "<string>",
"orgRolePermissions": [
"<string>"
]
},
"groups": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"scimSource": "<string>",
"bindings": [
{
"id": "<string>",
"role": "<string>",
"customRoleName": "<string>",
"scopeId": "<string>",
"scopeName": "<string>",
"permissions": [
"<string>"
]
}
]
}
],
"directBindings": [
{
"id": "<string>",
"role": "<string>",
"customRoleName": "<string>",
"scopeId": "<string>",
"scopeName": "<string>",
"permissions": [
"<string>"
]
}
]
}Authorizations
Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.
Path Parameters
Minimum string length:
1Was this page helpful?
⌘I