How to map and modify value of attribut pro IdP

Hello, we using keycloak for pam autentication for one app. Users imports identity in our keyclok from another IdP . IdP provides username with format username@sample.com and we map this as username to our keycloak, but without @sample … Please, I think, it not so complicated, but I do not know ho to do that. Any advice please?