Retrieve Okta logon events from Slack
BotsIdentity Management
What it does
When someone runs a command in Slack, this automation queries Okta for recent logon events by username or source IP. It posts results back to Slack with up to 100 events from the last 12 hours.
Who it's for
Security teams who investigate logon activity in Okta without leaving Slack.
Apps used
How teams use this
Investigate suspicious logon activity
Search Okta logon events by username from Slack to quickly review recent access patterns during a security incident. The team stays in Slack without switching tools.
Audit logon events by source IP
Run the command with a source IP address to see all recent logon events from that location. This helps identify unauthorized access attempts or unusual login patterns.
Verify logon events for compliance
IT teams can retrieve logon events by username to verify access during onboarding or offboarding. This ensures only authorized users have active sessions in the system.
Include geolocation in logon results
Add geolocation data to the Okta query so logon events show the country and city where access occurred. This requires including location fields in the Okta search parameters.
How it works
- Run the logon events command. Type the command in Slack with either a username or source IP address to search Okta logon events.
- Query Okta by username or IP. Search Okta for recent logon events matching the username or IP address provided, limited to 100 events within the last 12 hours.
- Post results to Slack. Reply in the same Slack conversation with the logon events found, or a message if no events match the search criteria.