Received an error when using the DELETE /api/auth/usergroups/{id} to remove an AD group. Granted, it states it is for 'local' group deletion. So, I attempted to pass in the parameter:
https://<vrops-server>/suite-api/api/auth/usergroups/<ad-group-id>?sourceId=<ad_auth_source_id>
and even tried to send in the json body
{
"sourceId": "800b9f52-e218-4e8a-807d-baaf99e2de95"
}
which also yielded the same result (Canoot remove userGroup).
I thought I might use PUT /api/auth/usergroups
to modify the group by setting the auth source to null so it could then be deleted, but the documentation is very light, and sending either name or id does not allow group modification:
{
"id": "<group-id>",
"sourceId": null
}
returns:
{
"message": "Invalid request... #1 violations found."
"validationFailures":
"failureMessage": "may not be empty"
"violationPath": "name"
}
"httpStatusCode": 400
"apiErrorCode": 400
}
Updating the original call with 'name' returns:
{
"message": ""UserGroup" with identifier "CN=AD_Openstack,OU=Rialto,OU=Application Managed,OU=Groups,DC=amr,DC=corp,DC=intel,DC=com" already exists."
"httpStatusCode": 422
"apiErrorCode": 1508
}
So it seems I am at an impasse. Assistance would be appreciated.