Migrating user from lms to discovery

I am unable to track how a user is being migrated from lms to discovery service. What I am was able to narrow down is that when i enroll any user in an enterprise through lms admin and then that user logs in to frontend enterprise mfe and he clicks on any available course then the user is being created in discovery service but still i dont know that particular instance or api call from where it is happening. Any one up for some help.

Hi @rishabh !

That is all handled by django-oauth-toolkit when the user first authenticates via the LMS.

Are you just trying to understand the data flow, or are you trying to do something specific?

Thanks for the reply and I just want to know when a user is getting created from in discovery service from lms or is their any command to migrate users data into discovery service?

Not to my knowledge, no.