Returns a paginated list of all IdP (Identity Provider) groups in your Enterprise, including their organization associations and roles.
IdP groups must be explicitly enabled for your Enterprise and are only supported for some enterprise SSO connections. Contact your administrator to enable group support.
Query Parameters
Number of groups to skip for pagination. Must be >= 0.
Maximum number of groups to return. Must be between 1 and 1000.
Response
Array of enterprise group objects
Number of organizations this group belongs to
Mapping of organization IDs to roles (org_admin or org_member)
Total number of groups in the Enterprise
Maximum number of groups returned
Whether there are more groups available
Cursor for the next page of results
curl -X GET "https://api.devin.ai/v2/enterprise/groups?limit=50" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"items": [
{
"group_name": "Engineering",
"org_count": 3,
"role_by_org_id": {
"org_123": "org_admin",
"org_456": "org_member",
"org_789": "org_admin"
}
},
{
"group_name": "Product",
"org_count": 2,
"role_by_org_id": {
"org_123": "org_member",
"org_456": "org_member"
}
}
],
"total": 15,
"skip": 0,
"limit": 50,
"has_more": false,
"next_cursor": null
}