Never used Azure but if its AD related, can you just use the LDAP Authentication method in moodle3? which has a ldap sync script when enabled its syncs/creates all the users without using any admin rights, you only need reading rights.
Authentication
Authentication against Azure Active Directory
This discussion has been locked so you can no longer reply to it.