The Recipient Management role will give UserB the ability to grant SEND AS to any mail-enabled object in EAC, unless you scoped a custom role to a specific group of recipients using RBAC.
Regardless, here is how you find which role is required for a specific command
In this case, send as is granted with add-adpermission for on-prem
$Perms = Get-ManagementRole -Cmdlet Add-ADPermission
Name RoleType
Active Directory Permissions ActiveDirectoryPermissions
$Perms | foreach {Get-ManagementRoleAssignment -Role $_.Name -Delegating $false | Format-Table -Auto Role,RoleAssigneeType,RoleAssigneeName}
Role RoleAssigneeType RoleAssigneeName
Active Directory Permissions RoleGroup Organization Management
Active Directory Permissions RoleGroup Recipient Management
To using the built-in role, add the UserB to "Recipient Management" at a minimum
https://learn.microsoft.com/en-us/powershell/exchange/find-exchange-cmdlet-permissions?view=exchange-ps
Alternatively, they can add SEND AS via ADUC if they have perms there as well :)