Short code to insert Join/Leave group button into a post

Currently the only way to add existing user to a group via invite is by using Invite Link (prepared via Invite Token), more details here:

The Invite Link can serve this case because the user will only be added to a group if they click on that link.