FEATURE: invite user with group support

[Meta topic](https://meta.discourse.org/t/api-functionality-for-invites/20278?u=techapj)