Hi @UserSD,
Have you tried to use OOTB User Synchronization mechanism?
Here is a link to documentation that describes, how it works, what are the limitations, and how it can be configured.
https://experienceleague.adobe.com/en/docs/experience-manager-65/content/security/sync#