User Activities
The User Activities API lets you track how users interact with your cidaas-powered applications. Each record can include when the action happened, which user was involved, device and location details, and the activity type.
Reports Changelog User ActivityWhy use User Activities
Track user actions for security compliance and investigation.
Review historical actions to diagnose login or account issues.
Maintain audit logs that support regulatory reporting requirements.
Understand how users interact with your applications over time.
What is tracked
Only activities of active customers are tracked. Typical events include:
Activity fields
Each activity record includes:
| Field | Description |
|---|---|
eventType | Type of activity (for example ACCOUNT_CREATED_WITH_CIDAAS_IDENTITY, LOGIN_WITH_CIDAAS) |
timeStamp | When the activity occurred (ISO 8601) |
sub | User identifier |
objectType | Type of object affected (for example users, apps) |
objectId | ID of the affected object |
deviceInfo | Device details (OS, browser, device type, model) |
location | Geographic location (IP, country, city, coordinates) |
summary | Human-readable summary of the activity |
clientId | Client application that triggered the activity |
Who can access what
Must be in CIDAAS_ADMINS with ADMIN or SECONDARY_ADMIN. Can access all user activities, including their own.
Can only access their own activities. The sub in the request must match the token sub.
When requesting activities for another user, the caller and target must share at least one group, and the caller must have GROUP_ADMIN in a shared group.
How to query activities
from, size, and descending to page through results.Use the User Activities API to retrieve activity data with filtering and pagination.
Example request
{
"eventType": ["ACCOUNT_CREATED_WITH_CIDAAS_IDENTITY", "LOGIN_WITH_CIDAAS"],
"sub": "89c77e6e-4c49-4dad-b3d9-21a19fcad783",
"from": 0,
"size": 10,
"dateFilter": {
"from_date": "2023-03-02T11:33:55.515Z",
"to_date": "2023-04-02T11:33:55.515Z"
},
"descending": true
}
Filtering options
You can filter activities by:
- Event type: specific activity types (for example
ACCOUNT_MODIFIED,LOGIN_WITH_CIDAAS) - User: filter by user
subor identifier (email, username) - Date range:
from_dateandto_date - Object type: for example
users,apps - Object ID: a specific object
- Client ID: a specific client application
Common use cases
Security monitoring
Track suspicious login attempts, account modifications, or unusual behavior patterns.
User support
Review activity history to help troubleshoot issues or answer support questions.
Compliance reporting
Generate audit reports showing user actions for compliance requirements.
Analytics
Analyze behavior patterns to improve application experience.
Related documentation
Please contact us directly on our support page or reach out to cidaas support at [email protected].