Skip to content

Commit

Permalink
Merge branch 'develop' into ben/update-check-packs-action
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-githubs authored Oct 22, 2024
2 parents a0f2137 + 09d2d70 commit 4af97c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def rule(event):
if event.deep_get("id", "applicationName") != "user_accounts":
if event.deep_get("id", "applicationName") not in ("user_accounts", "login"):
return False

if event.get("name") == "email_forwarding_out_of_domain":
Expand Down
13 changes: 12 additions & 1 deletion rules/gsuite_activityevent_rules/gsuite_external_forwarding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Runbook: >
SummaryAttributes:
- p_any_emails
Tests:
- Name: Forwarding to External Address
- Name: Forwarding to External Address - applicationName = user_accounts
ExpectedResult: true
Log:
{
Expand All @@ -33,6 +33,17 @@ Tests:
{ "email_forwarding_destination_address": "[email protected]" },
}

- Name: Forwarding to External Address - applicationName = login
ExpectedResult: true
Log:
{
"id": { "applicationName": "login", "customerId": "D12345" },
"actor": { "email": "[email protected]" },
"type": "email_forwarding_change",
"name": "email_forwarding_out_of_domain",
"parameters": { "email_forwarding_destination_address": "[email protected]" }
}

- Name: Forwarding to External Address - Allowed Domain
ExpectedResult: false
Log:
Expand Down

0 comments on commit 4af97c5

Please sign in to comment.