Hello @Jeferson Gonçalves ,
Thank you for reaching out Microsoft Q&A.
I Understand you are encounterring error EnableDirectorySyncTask Error: Directory synchronization is enabled for this directory, but has not yet taken effect. Please wait until directory synchronization is ready.
This message usually means that the initial sync is still in progress. It can take some time depending on the size of your directory and the amount of data being synchronized.
This can also happen having duplicate users can cause synchronization issues. Please check if there are any duplicate entries, and if so, a hard match will be required. This process involves manually matching the duplicate users to the correct identity, ensuring that only one active account remains.
For additional details regarding hard match you can follow the document: https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-connect-install-existing-tenant
If you are still facing issue let me know!
Hope this helps. Do let us know if you any further queries.