Questions about moderator shield badge

I’m a bit confused. Do you want to assign users to a group via API or via backend? Or do you have in mind any custom backend? (Still, I believe that in any case an answer is Yes)