diff --git a/doc/site/sources/docs/configuration-options.md b/doc/site/sources/docs/configuration-options.md index 723970978..f95dbec74 100644 --- a/doc/site/sources/docs/configuration-options.md +++ b/doc/site/sources/docs/configuration-options.md @@ -287,6 +287,43 @@ The following table lists all available configuration options.
SMTP_ADDRESS_MAPPING
+ CEL expression for deriving + a user's email address from their Cloud Identity/Workspace user ID. +
++ By default, JIT Accesses uses the Cloud Identity/Workspace user ID (such as alice@example.com) as + email address to deliver notifications to. If some or all of your Cloud Identity/Workspace user IDs + do not correspond to valid email addresses, use this setting to specify a CEL expression that derives a valid email address. +
+
+ CEL expressions can use standard functions
+ and the extract()
function.
+
+ For example, the following expression replaces the domain example.com
with test.example.com
for all users:
+
+ user.email.extract('{handle}@example.com') + '@test.example.com'
+
+ If you're using multiple domains and only need to substitute one of them, you can use conditional + statements. For example: +
+
+ user.email.endsWith('@external.example.com')
+ ? user.email.extract('{handle}@external.example.com') + '@otherdomain.example'
+ : user.email
+
+