If an organisation have multiple domains on Templafy (Templafy tenants) but share the same ADFS or Azure tenant, then a discriminator claim can be added to the users after being authenticated given access to the relevant domain on Templafy.
When setting this up in Templafy please note that the Claim name is the actual name for AzureAD but the claim rule string for SAML2 (see example below)
The claim value is the value received from this claim
Discriminator claim for AzureAD
Discriminator claim for ASFS / SAML2