Important Update: Some Community URL Redirects are Under Maintenance. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

remove group member API call failed

Archerwizz2022
Contributor III

I'm using a simple call to the "remove group member" API as follows:

{
"GroupMemberId": 1190,
"GroupId": 864,
"IsAdd": false
}

but I end up with error message like this:

"ValidationMessages": [
{
"Reason": "Invalid Group Ids",
"Severity": 3,
"MessageKey": "ValidationMessageTemplates:GroupNoExist",
"Description": "",
"Location": -1,
"ErroredValue": null,
"Validator": "ArcherTech.Kernel.ErrorHandling.Rules.GroupIdsValidate, ArcherTech.Kernel, Version=6.10.102.10028, Culture=neutral, PublicKeyToken=null",
"XmlData": null,
"ResourcedMessage": "The group does not exist."
}
]

 

I checked both the GroupMemberId and the groupID, and both exist, so I'm not sure why this API call fails.

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions

Archerwizz2022
Contributor III

It turned out I'm using the wrong API to add/remove user from a user group.

I should have used the following

{
"UserId": 99999,
"GroupId": 85,
"IsAdd": false
}

View solution in original post

1 REPLY 1

Archerwizz2022
Contributor III

It turned out I'm using the wrong API to add/remove user from a user group.

I should have used the following

{
"UserId": 99999,
"GroupId": 85,
"IsAdd": false
}