To enable the Compliance API, see the setup guide.
Set up the Compliance API프로젝트 협업자 목록 조회
GET/v1/compliance/apps/projects/{project_id}/collaborators
프로젝트에 대한 사용자, 그룹 및 조직 전체 권한 부여를 나열합니다.
각 항목은 프로젝트에 대한 하나의 활성 역할 할당을 나타냅니다. 주체(principal)는 type을 기준으로 한 구별된 유니온(discriminated union)으로 반환되며, 개별 사용자, 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"
}