This module allows site administrators to grant specific roles the right to assign selected roles to users, without requiring full administrative permissions on users.
For example, if you have created a Manager role for your client and alongside other roles (Editor, Manager, etc.), the Manager can assign a role to an active account to assign tasks available on the site to people in particular. And you, as super-user, keep full rights to user management if you don't need to open it for your client.
composer require drupal/role_delegation