Hi @davidhouseknechtdev ,
Unfortunately I am not aware of a good way to do this within Actions alone currently.
App_metadata is supposed to only be modified via Rules, Actions, Dashboard or the Management API and not tied to a particular connection, and so it can cause issues if set directly by an external IdP. (Understand How Metadata Works in User Profiles)
What I would recommend is mapping the claims from your upstream IdP to a custom root profile entry that doesn’t overlap with an Auth0 profile attribute (User Profile Structure).
Currently, Actions can only access the attributes that are listed for the relevant trigger’s Event object, e.g the Post Login triggers event object is detailed here:
Because of this, you would then need a Rule to copy this custom attribute into the user’s app_metadata so it could be accessed by your Actions:
Sorry for the wait, I hope this is still useful