Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2022-04-25 11:06 AM
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
2022-04-26 11:57 AM
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
}
2022-04-26 11:57 AM
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
}