Skip to content

Commit 0ad792f

Browse files
committed
allow 'login' applicationName for GSuite.ExternalMailForwarding
1 parent 3c0205f commit 0ad792f

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

rules/gsuite_activityevent_rules/gsuite_external_forwarding.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
def rule(event):
5-
if event.deep_get("id", "applicationName") != "user_accounts":
5+
if event.deep_get("id", "applicationName") not in ("user_accounts", "login"):
66
return False
77

88
if event.get("name") == "email_forwarding_out_of_domain":

rules/gsuite_activityevent_rules/gsuite_external_forwarding.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Runbook: >
2121
SummaryAttributes:
2222
- p_any_emails
2323
Tests:
24-
- Name: Forwarding to External Address
24+
- Name: Forwarding to External Address - applicationName = user_accounts
2525
ExpectedResult: true
2626
Log:
2727
{
@@ -33,6 +33,17 @@ Tests:
3333
{ "email_forwarding_destination_address": "[email protected]" },
3434
}
3535

36+
- Name: Forwarding to External Address - applicationName = login
37+
ExpectedResult: true
38+
Log:
39+
{
40+
"id": { "applicationName": "login", "customerId": "D12345" },
41+
"actor": { "email": "[email protected]" },
42+
"type": "email_forwarding_change",
43+
"name": "email_forwarding_out_of_domain",
44+
"parameters": { "email_forwarding_destination_address": "[email protected]" }
45+
}
46+
3647
- Name: Forwarding to External Address - Allowed Domain
3748
ExpectedResult: false
3849
Log:

0 commit comments

Comments
 (0)