Returns a paginated list of organizations that a specific user has access to within your enterprise.
Path Parameters
The unique identifier of the user to get organizations for
Query Parameters
Number of organizations to skip for pagination. Must be >= 0.
Maximum number of organizations to return. Must be between 1 and 1000.
Response
Array of organization objects that the user has access to
The user’s unique identifier
Unique identifier for the organization
User’s role within this organization
User’s enterprise-level role (null if not applicable)
Total number of organizations the user has access to
Number of organizations skipped
Maximum number of organizations returned
Whether there are more organizations available
Cursor for the next page of results
curl -X GET "https://api.devin.ai/v2/enterprise/members/user_123/organizations" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"items": [
{
"user_id": "user_123",
"email": "john.doe@company.com",
"name": "John Doe",
"org_id": "org_456",
"org_name": "Engineering Team",
"org_role": "org_admin",
"enterprise_role": "account_admin"
},
{
"user_id": "user_123",
"email": "john.doe@company.com",
"name": "John Doe",
"org_id": "org_789",
"org_name": "Product Team",
"org_role": "org_member",
"enterprise_role": null
}
],
"total": 2,
"skip": 0,
"limit": 100,
"has_more": false,
"next_cursor": null
}