Skip to content

Commit 75a42f7

Browse files
Okta: populate user.email when user name is an email address (#14148)
According to ECS documentation about user fields usage[1]: - When a system uses an email address as the main identifier, populate both user.id and user.email with it. This change copies the `user.name` field into the `user.email` field to align with all other integrations where the main user identifier is an email address, including Entity Analytics Okta. This should help to who wants to correlate email addresses between integrations. In this case, the user email is not dissected into `user.name@user.domail` as for the Okta ecosystem, the user part of the email doesn't make sense by itself. [1] https://www.elastic.co/docs/reference/ecs/ecs-user-usage#ecs-user-identifiers
1 parent e3f7fb0 commit 75a42f7

File tree

9 files changed

+277
-19
lines changed

9 files changed

+277
-19
lines changed

packages/okta/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "3.10.0"
3+
changes:
4+
- description: Populate `user.email` from `user.name` when contains an email address to align with EntityAnalytics Okta and the other integrations.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/14148
27
- version: "3.9.0"
38
changes:
49
- description: Parse `transaction.detail.rootApiTokenId` and `authenticationContext.rootSessionId` fields in pipeline.

packages/okta/data_stream/system/_dev/test/pipeline/test-okta-system-events.json-expected.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"ip": "175.16.199.1",
1616
"user": {
17+
"email": "username@elastic.co",
1718
"full_name": "xxxxxx",
1819
"id": "00u1abvz4pYqdM8ms4x6",
1920
"name": "username@elastic.co"
@@ -129,12 +130,14 @@
129130
},
130131
"ip": "175.16.199.1",
131132
"user": {
133+
"email": "username@elastic.co",
132134
"full_name": "xxxxxx",
133135
"id": "00u1abvz4pYqdM8ms4x6",
134136
"name": "username@elastic.co"
135137
}
136138
},
137139
"user": {
140+
"email": "username@elastic.co",
138141
"full_name": "xxxxxx",
139142
"name": "username@elastic.co"
140143
},

0 commit comments

Comments
 (0)