/workflows/rules. Rules let you define what events matter and what should happen when they occur — automatically, in real time.
How rules work
A rule has three parts:- Trigger — the event type that starts the evaluation
- Conditions — AND-matched filters that narrow which events activate the rule
- Actions — what happens when all conditions match
Creating a rule
- Go to Workflows → Rules
- Click New Rule
- Give it a name and optional description
- Choose a trigger type
- Add conditions
- Configure one or more actions
- Set the rule to Active and save
Trigger types
Conditions
All conditions must match (AND logic). Conditions narrow the trigger to specific cases: For apps: category, risk level, shadow IT status, discovery source, approval statusFor OAuth grants: risk level, permission scopes, grant age, publisher trust score
For users: group membership, department, directory status, last active date
Actions
Example rules
Alert on new high-risk shadow IT
- Trigger: Resource — New app discovered
- Conditions: Approval status = Pending, Risk level = High or Critical
- Action: Notify
#security-alertsSlack channel
Flag stale OAuth grants
- Trigger: OAuth Grant — Not used in N days
- Conditions: Days since last use ≥ 90
- Action: Create finding (Medium), assign to IT admin
Watch for deprovisioned users with active access
- Trigger: Account — User deactivated in directory
- Conditions: User has active app assignments
- Action: Notify IT admin + create finding (High)
Track new AI tools being adopted
- Trigger: Resource — New app discovered
- Conditions: AI classification = AI Primary or AI Enhanced
- Action: Notify IT lead, assign for review
Trigger an offboarding playbook automatically
- Trigger: Account — User deactivated
- Action: Trigger Playbooks — Employee offboarding
Managing rules
Active / Paused — toggle rules on or off without deleting them. Useful when you want to temporarily suspend a noisy rule without losing its configuration. Rule log — see a history of every event that triggered each rule and what action was taken. Essential for debugging why a rule did or didn’t fire. Edit — modify conditions and actions at any time; changes take effect immediately on the next matching event. Duplicate — create a copy of an existing rule as a starting point for a new one.Current limitations
Rules currently support AND-only condition matching — all conditions in a rule must match. For OR scenarios (e.g. “alert if risk is High OR Critical”), create two separate rules with each condition.Next steps
Findings
Review findings created by rules
Playbooks
Trigger multi-step workflows from rules
Pulses
Send employee outreach as a rule action
OAuth Grants
Set up automated alerts on risky grants