Map SAML attributes to user_metadata attributes via action

Im also interested to know whether we can map user_metadata attributes to SAML attributes in an action given that rules are soon going to be deprecated. Is there any link providing details on the same ?

Thank You