Skip to content

Commit

Permalink
docs(okta): add how to use email in urns (datahub-project#7708)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored Mar 31, 2023
1 parent 92ad720 commit f0a675f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class OktaConfig(ConfigModel):
# profile. Reference: https://developer.okta.com/docs/reference/api/users/
okta_profile_to_username_attr: str = Field(
default="login",
description="Which Okta User Profile attribute to use as input to DataHub username mapping.",
description="Which Okta User Profile attribute to use as input to DataHub username mapping. Common values used are - login, email.",
)
okta_profile_to_username_regex: str = Field(
default="([^@]+)",
Expand Down Expand Up @@ -204,7 +204,11 @@ class OktaSource(Source):
By default, the 'login' attribute, which contains an email, is parsed to extract the text before the "@" and map that to the DataHub username.
If this is not how you wish to map to DataHub usernames, you can provide a custom mapping using the configurations options detailed below. Namely, `okta_profile_to_username_attr`
and `okta_profile_to_username_regex`.
and `okta_profile_to_username_regex`. e.g. if you want to map emails to urns then you may use the following configuration:
```yaml
okta_profile_to_username_attr: "email"
okta_profile_to_username_regex: ".*"
```
#### Profiles
Expand Down

0 comments on commit f0a675f

Please sign in to comment.