Searching & Listing Groups
Search by name, pagination, filtering
Written By jazilkalim
Last updated 11 months ago
What is Group Search?
Group search and listing operations allow you to find and browse groups in your CampusMindAI tenant.
Why Search and List Groups?
Quick Lookup: Find groups by name
Administration: Review group structure
Audit: Verify group configuration
Search Groups
Search for groups by name using a search term.
Endpoint Details
Method:
GETURL:
{{baseURL}}/api/v1/groups?search_term=<term>Authentication: Required (JWT Bearer token)
Query Parameters
Example Request
curl -X GET "https://<baseURL>/api/v1/groups?search_term=CS101" \
-H "Authorization: Bearer <jwt-token>"
Response
Status Code: 200 OK
{
"current_page": 1,
"next_page": 0,
"total_pages": 1,
"total_records": 3,
"limit": 10,
"search_term": "CS101",
"groups": [
{
"group_id": 1000385,
"group_name": "CS101_Fall2024",
"group_description": "Introduction to Computer Science - Fall 2024",
"group_updated_at": "2024-12-02T10:30:00Z",
"group_tenant_global": "0",
"group_created_by": "admin@example.com",
"group_created_by_id": "550e8400-e29b-41d4-a716-446655440000",
"role_id": 1
}
]
}
Response Fields
List Groups
Retrieve a paginated list of all groups in your tenant.
Endpoint Details
Method:
POSTURL:
{{baseURL}}/api/v1/list_groupAuthentication: Required (JWT Bearer token)
Request Body
Example Request
curl -X POST "https://<baseURL>/api/v1/list_group" \
-H "Authorization: Bearer <jwt-token>" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"limit": 10
}'
Response
Status Code: 200 OK
{
"current_page": 1,
"next_page": 2,
"total_pages": 5,
"total_records": 47,
"limit": 10,
"groups": [
{
"group_id": 1000385,
"group_name": "CS101_Fall2024",
"group_description": "Introduction to Computer Science - Fall 2024",
"group_updated_at": "2024-12-02T10:30:00Z",
"group_tenant_global": "0",
"group_created_by": "admin@example.com",
"group_created_by_id": "550e8400-e29b-41d4-a716-446655440000",
"role_id": 1
}
]
}
Group Object Fields
Search Tips
Partial matching: Search term matches anywhere in group name
Case insensitive: Search is not case-sensitive
Common patterns: Use course codes, semesters, or department names
Pagination
Navigate through pages by incrementing the page parameter:
# Page 1
{"page": 1, "limit": 10}
# Page 2
{"page": 2, "limit": 10}
Continue until next_page is 0.
Error Responses
Troubleshooting
No Search Results
Solutions:
Verify search term spelling
Try broader search terms
Use
list_groupto see all available groups
Empty Group List
Solutions:
Start with page 1
Verify groups exist in tenant
Check user permissions
Was this helpful?
More in Developer Guide
API Reference QuickstartAPI Reference Common Response FormatsAzure AD Login GuideManaging UsersStill need help? Share an idea