サービスアカウントのワークスペースメンバーを取得
GET/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}
ワークスペースにおけるサービスアカウントのメンバーシップを取得します。
このワークスペースにおけるサービスアカウントの workspace_role を含むメンバーシップレコードを返します。アーカイブ済みのワークスペースは400を返します。デフォルトワークスペースの場合、明示的なメンバーシップが存在しないときは暗黙的な(implicit: true)メンバーシップを返します。明示的に追加されたメンバーシップは、割り当てられたロールとともに返されます。アーカイブ済みのサービスアカウントは404を返します。
Path parameters
Headers
Returns
サービスアカウントのワークスペースメンバーを取得
cURL
curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/service_accounts/$SERVICE_ACCOUNT_ID \
-H 'anthropic-version: 2023-06-01' \
-H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"Response 200
{
"created_by_actor_id": "created_by_actor_id",
"implicit": true,
"service_account_id": "service_account_id",
"type": "service_account_workspace_member",
"workspace_id": "workspace_id",
"workspace_role": "workspace_admin"
}Returns Examples
Response 200
{
"created_by_actor_id": "created_by_actor_id",
"implicit": true,
"service_account_id": "service_account_id",
"type": "service_account_workspace_member",
"workspace_id": "workspace_id",
"workspace_role": "workspace_admin"
}