cURL
curl --request GET \ --url https://api.devin.ai/v3/enterprise/members/users/{user_id} \ --header 'Authorization: Bearer <token>'
{ "email": "<string>", "name": "<string>", "role_assignments": [ { "role": { "role_id": "<string>", "role_name": "<string>", "role_type": "enterprise" }, "org_id": "<string>" } ], "user_id": "<string>", "idp_role_assignments": [ { "idp_group_name": "<string>", "role": { "role_id": "<string>", "role_name": "<string>", "role_type": "enterprise" }, "org_id": "<string>" } ] }
按 ID 获取用户。返回直接分配的角色以及由 IDP 组派生的角色分配。
role_assignments
idp_role_assignments
ManageAccountMembership
服务用户凭据(前缀:cog_)
用户 ID
成功响应
同时具有直接角色分配和源自 IDP 组的角色分配的用户。
Show child attributes