Save User info in keyCLoak database

Hello everyone,

I have Configured SQL database with keycloak.
I have created a custom SPI for authenticating users.

After redirection user gets logged in… i want to save user info in keycloak database (create a new table OR can use existing table ) using my custom SPI…
please guide how can I achieve this

Thanks and Regards