I am using WSO2 IS v5.11.0.
I am trying to perform a PATCH
request, where I am trying to remove a user from the group.
API: /Groups/{id}
Method: PATCH
Payload:
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "remove",
"value": {
"members": [
{
"display": "USERSTORE1/newuser",
"value": "5b957306-05ad-48ea-a2f5-230b99e989a8"
}
]
}
}
]
}
I am getting the below error response
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"scimType": "noTarget",
"detail": "No path value specified for remove operation",
"status": "400"
}
For the same API request payload, I could do the addition of user to group using "op": "add" but remove alone doesn't work!!
Can someone let me know the issue and how to do the removal of user from group?
Ref: https://is.docs.wso2.com/en/5.11.0/develop/scim2-rest-apis/#/Groups%20Endpoint/patchGroup