You can achieve this by using SCIM. Azure AD supports SCIM.
Azure AD Provisioning Service provisions users to SaaS apps and other systems by connecting to a System for Cross-Domain Identity Management (SCIM) 2.0 user management API endpoint provided by the application vendor.
This SCIM endpoint allows Azure AD to programmatically create, update, and remove users.
You can refer below articles to know more about SCIM and its configuration.
https://learn.microsoft.com/en-us/azure/active-directory/app-provisioning/how-provisioning-works
https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/sync-scim
https://learn.microsoft.com/en-us/azure/active-directory/app-provisioning/use-scim-to-provision-users-and-groups
Do let me know if you have any further questions
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.