To enable the Compliance API, see the setup guide.
Set up the Compliance API列出專案協作者
GET/v1/compliance/apps/projects/{project_id}/collaborators
列出專案上的使用者、群組和組織範圍的授權。
每個項目代表專案上的一個有效角色指派。主體以 type 作為區分聯集傳回——個別使用者、RBAC 群組、整個組織,或組織層級角色的所有持有者。
Path parameters
Query parameters
Headers
Returns
列出專案協作者
cURL
curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID/collaborators \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response 200
{
"data": [
{
"granted_at": "2019-12-27T18:11:19.117Z",
"role": "admin",
"type": "user",
"user_id": "user_id"
}
],
"has_more": true,
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"granted_at": "2019-12-27T18:11:19.117Z",
"role": "admin",
"type": "user",
"user_id": "user_id"
}
],
"has_more": true,
"next_page": "next_page"
}