
User15965789037095850130 (Customer) asked a question.
We setup Workday to be our source of truth and running into an issue where users are having their personal emails sent to Okta and having their accounts registered as such.
We have disabled the home email field in Workday, but want to setup the expression to restrict login to require the user to have their @org.com email set in their primaryWorkEmail.
Any ideas on the best expression to use or settings between workday/okta?

Hello @User15965789037095850130 (Customer) Thank you for reaching out to our community.
You can use substringBefore(user.email, '@') + "@domain.com" this will take the first part of the e-mail and add you domain at the end.
Or you can use something like this source.firstName + "." + source.lastName + "@domain.com"
For additional options you can also take a look at our documentation below:
https://developer.okta.com/docs/reference/okta-expression-language/#string-functions
Hope this helps!