Skip to content

Commit 1e58947

Browse files
authored
Merge pull request #367 from openedx/bbeggs/ENT-8144
fix: ENT-8144 When adding learners to braze ensure they are tagged as enterprise learners
2 parents 995f474 + 926ea01 commit 1e58947

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

enterprise_access/apps/api_client/braze_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def create_recipient(
6868
attributes = {
6969
"user_alias": user_alias,
7070
"email": user_email,
71+
"is_enterprise_learner": True,
7172
"_update_existing_only": False,
7273
}
7374

@@ -84,9 +85,13 @@ def create_recipient_no_external_id(self, user_email):
8485
Create a Braze recipient dict identified only by an alias based on their email.
8586
"""
8687
return {
87-
'attributes': {'email': user_email},
88+
'attributes': {
89+
'email': user_email,
90+
'is_enterprise_learner': True,
91+
},
8892
'user_alias': {
8993
'alias_label': ENTERPRISE_BRAZE_ALIAS_LABEL,
9094
'alias_name': user_email,
95+
9196
},
9297
}

0 commit comments

Comments
 (0)