<PackageReference Include="Relativity.Server.Identity.SDK" Version="5000.1.4" />

Relativity.Identity.V1.LoginProfileModels.TwoFactorMode

public enum TwoFactorMode
Sets when two factor authenticaiton will be used.
Always = 1

User must always use Two Factor authentication when logging in.

None = 0

Two Factor authentication is turned off.

User must use Two Factor authentication when logging in from an IP address that is on the trusted IP list.