[**RongIMLib**](../README.md) *** [RongIMLib](../globals.md) / inviteUsersToGroup # Function: inviteUsersToGroup() > **inviteUsersToGroup**(`groupId`, `userIds`): `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<[`IInviteUserToGroupResponse`](../type-aliases/IInviteUserToGroupResponse.md)\>\> 邀请用户加入群组 ## Parameters ### groupId `string` 群组 ID ### userIds `string`[] ## Returns `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<[`IInviteUserToGroupResponse`](../type-aliases/IInviteUserToGroupResponse.md)\>\> ## Description 客户端创建群组需要开通 `信息托管功能`,未开通时不支持此功能,通过邀请方式将用户加入群组,不需要群主或管理员同意,可直接加入群组 ## Since 5.12.0