We need an llInviteToGroup function
llInviteToGroup(string groupname, integer role, key id, string message)
This would take the name of the group to invite the target to. Unless groups have UUID's. If so, that would be better to use than a name. role number would be a number assigned to each role. Assuming Owner is 0, officer is 1, everyone is 2, and all other custom roles get an incrementing integer from 3 onwards. This would probably require some restructuring of the group system. id would be the UUID of the target avatar, and message would be an optional text message that would appear to the person being invited.
obviously, to utilise this function, one would have to be a member of said group, with the appropriate powers to invite people.
This function would help in a lot of cases. For example, many business owners invite their customers to a group to recieve product updates and such. If this function could be put into a vendor so as to autoiinvite someone, that would take some time off the hands of business owners.