https://techcommunity.microsoft.com/t5/Microsoft-365-Blog/New-to-admin-center-Templates-for-adding-users-faster/ba-p/856424

We’ve heard your feedback – creating multiple users with the same settings can be frustrating and time-consuming. I am pleased to announce the addition of templates to the active users page in Microsoft 365 admin center. We hope that this feature will streamline your work and help you achieve more.  You can now create and use a template to save time when adding multiple users. Templates are particularly useful if you have users who share many properties, like those who work in the same role and the same location.