How an External ID generation in SCIM provisioning?

I have an SCIM-enabled application that generates the External ID (a 4-digit numeric value) to be sent to the application. How it generates the External ID is a mystery to me. I have checked all the attributes in OKTA and AD user profiles, but they are not configured anywhere.

I think I’m confused, what is your question?

If you are asking what this External Id is, its the ID for the user on the Service Provider/SCIM server side. When Okta creates or otherwise pushes a user to a SCIM server, the SCIM server will respond back with its ID for that user. Okta then stores that ID as an “External Id” for the user on the Okta side within the application profile for that user and will use that External ID for subsequent updates to that user