
ggtaz (ggtaz) asked a question.
Hello I am trying to provision users that are present in Okta to GW. However while doing so I need to change the email address to the domain present in GWS. Eg: if my user in Okta is user@abc.com I need to change it to user@xyz.com while provisioning (other attributes remaining the same). I am able to do it for a single user but not sure how to accomplish for multiple users

I think you just need adjust the "User Profile Mappings" in Okta for GW. You can find this going to:
Directory->Profile Editor->Users(search for GW)->Mappings(click link)
On the mapping screen make sure you are on the "Okta to GW" tab not "GW to Okta" tab. Next scroll down to the email attribute you want updated. On the Okta side enter an expression like:
String.replace(source.email, "abc.com", "xyz.com")
You can do other things with Okta expressions if needed. https://developer.okta.com/docs/reference/okta-expression-language/#string-functions
Before you "Save Mappings" make sure you test a few accounts out by using the "Preview" found at the bottom of the page. When you run "Preview" you should see the transformed data if you scroll back up to email.