Added function inviteGroupAction to ApiController, #5166
Added documentation TODO