Diagnose access problems
Most access tickets are a variant of “why can’t I get in”. The System Log holds the answer, and@Search Okta System Logs lets the agent read it and explain what happened in plain language.
Search Okta System Logs
Search Okta System Logs
@Search Okta System LogsFilters:User email(required) - returns events where this person was the actor or the targetSinceandUntil- the time range to search. Defaults to the last 24 hoursEvent type- a single Okta event type, for exampleuser.session.startorpolicy.evaluate_sign_onKeyword- free-text search across event fieldsLimit- how many events to return, up to 100
- Explain a failed sign-in or a locked account
- Find the MFA prompt a user started but never completed
- Show when someone lost a group membership, and what they lost access to with it
- Confirm whether a just-granted app assignment took effect
- Reconstruct the sequence of events around an incident
Okta sign-in troubleshooting rule
okta.logs.read scope on your Okta app. If the scope is missing, the tool fails when the agent first calls it rather than at setup, so grant it before you write rules that depend on it.Common event types
Useful values for theEvent type filter when you want to narrow a search:
Look up people and groups
Get Okta User
Get Okta User
@Get Okta UserList Okta User Groups
List Okta User Groups
@List Okta User GroupsCheck Okta Group Membership
Check Okta Group Membership
@Check Okta Group MembershipFix credentials
Reset Okta Password
Reset Okta Password
@Reset Okta PasswordReset Okta MFA
Reset Okta MFA
@Reset Okta MFAGenerate Okta Password Reset Link
Generate Okta Password Reset Link
@Generate Okta Password Reset LinkManage access
Add User to Okta Group
Add User to Okta Group
@Add User to Okta GroupRemove User from Okta Group
Remove User from Okta Group
@Remove User from Okta GroupAdd User to Okta Application
Add User to Okta Application
@Add User to Okta ApplicationRemove User from Okta Application
Remove User from Okta Application
@Remove User from Okta ApplicationCreate Okta Group
Create Okta Group
@Create Okta GroupDelete Okta Group
Delete Okta Group
@Delete Okta GroupActivate Okta User
Activate Okta User
@Activate Okta UserDeactivate Okta User
Deactivate Okta User
@Deactivate Okta UserSetup
Connect Okta
Grant the log scope
okta.logs.read to your Okta app’s granted scopes. Without it, every other tool here still works and only log search fails.Check the agent's tools
Write a rule
Best practices
- Search the log before escalating. A rule that reads the log first turns most “I can’t get in” tickets into an answer instead of a handoff.
- Start without an event type filter. The unfiltered last 24 hours usually contains the cause. Narrow only when the result is noisy.
- Check membership before changing it. Pair
@Check Okta Group Membershipwith the add and remove tools so the agent reports what actually changed. - Name the person, not “you”. An admin often asks on someone else’s behalf, so rules should refer to the target user by name.
- Gate the destructive tools. Put
@Delete Okta Groupand@Deactivate Okta Userbehind Requires approval in any rule an agent can reach on its own.