Hi @Seelam, Bharathi (Cognizant)
The API supports both user context and application context, if you are using user context then you have to log in with the owner of the group chat and get token, then use that token to add new members, in user context only the group chat owner can add new members. If you are using application context then you can add new members directly.
Note that if your user is a guest, you must set roles to "guest" when adding him to the group chat.
Roles = new List<String>()
{
"guest"
}
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our [documentation][4] to enable e-mail notifications if you want to receive the related email notification for this thread.