One search field with two available actions

When assigning roles to a user, the admin uses a single search field with 2 available actions:

  • Search Roles that can be added
  • Search Users to copy role assignments from

Currently, the UI looks like this:

Copy assignments Choose role

How can this UI be simplified for the user?