Problem:
User retains previous user groups even after new user groups have been sent through API and old ones have been removed from the payload.
Reason:
Removing a user group via the API requires explicitly setting the group's active status to false in the payload. Omitting this step results in the group not being removed, as the API interprets the absence of the group in the payload as a request to retain existing memberships rather than remove them.
Instructions:
1. Ensure all groups intended to be removed from a user are included in the API payload with the active field set to false.
For example:
"groups": [
{
"externalGroupCode": "VIEW",
"active": true
},
{
"externalGroupCode": "CON",
"active": false
}
]
2. Verify that the payload includes all relevant user groups, with active statuses updated to reflect desired changes.
If you need further assistance, please reach out to Basware Support.