If the application is either a SAML Application or OIDC Application you can do an IdP Initiated Flow where either a SAML Response, id_token (Okta simplified), or issuer URL (oidc compliant) is sent to the application.
In the case of a SAML Assertion or id_token there could be an attribute/claim with this information.
If the issuer URL is sent the application would do an authorize code flow and retrieve a token which could contain a claim with this information.