Current timestamp as user's attribute?

Hi!
I am using SAML identify provider. Specifically from Google SSO.

I would like to do something like this:
The first time you log in using keycloak, a timestamp is added to the user’s account as an attribute.

How to achieve this?