How to assign badges with a button click

@av-promotional
You normaly should find 2-different APIs for your wished function.

The first should show you all badges belonging to a user.
The second one should show you all users belonging to a badge.
This could be a way to your solution.