We have multiple external LDAP and AD directories through which user’s are sources into Okta. Due to complexities in architecture and requirements, we are using a self hosted login service configured as an identity provider.
In certain cases, we wish to redirect users away from the normal login flow depending on a particular user profile attribute which again is synced from the value set in the user’s profile in source (ie. whatever this attribute is set in LDAP or AD user profile)
Now, this redirect action will allow users ability to change their profile values in an external system and not via Okta (as login is configured to fail due to this condition) and user input will directly update their profile inhe profile source (LDAP/AD). This can be something like some missing profile information etc. Due to reasons I cannot share here, we CANNOT enable the OOTB self registration feature/develop something similar and update the user’s Okta profile and sync it with the profile source.
After the user updates their profile through the external system, the next attempt to login should not be denied due to any deficiencies in profile info/attributes. However this is not happening as the real time sync is failing to kick even after multiple user related okta api calls like Get user using login or their Okta ID. These calls were enough to kick in the real time snyc in Okta Classic Engine but are not triggering the sync now that our Okta Tenant is upgraded to the Okta Identiy Engine. Some actions that will trigger the sync are the admin accessing/refreshing the user’s profile in Okta admin dashboard (which calls the - {baseAdminDashboardUri}/admin/user/profile/view/{oktaUserId} ) and the end user themselves logging into the okta dashboard.
Both of these actions are not feasible in our self hosted login service.
So the actual question after this long wall of text explaining the backgroud is - Is there any particular API call that can be made to trigger real time sync of user’s profile, specifically for the Okta Identity Engine? How can this behaviour be emulated using Okta API calls?
Thanks for spending the time to read this very long question, any help or leads are appreciated