The user sync button on top of the User screen will bring up options for automatically bringing in, and syncing users with your system.
User/Sync Settings
If you use Microsoft 365 or Azure/Entra, you can use the Microsoft Graph API to sync users.
If enabled you will have the option to choose the frequency of the sync, and the ability to view the sync log for debugging purposes
Microsoft Graph API
Detailed instructions for this method are shown in the settings when selected.