VIP Authentication Hub - DELETE User api is not working in 2.2.2 AuthHub Release
search cancel

VIP Authentication Hub - DELETE User api is not working in 2.2.2 AuthHub Release

book

Article ID: 368156

calendar_today

Updated On:

Products

VIP Authentication Hub

Issue/Introduction

User Delete API 

  • Previous Releases Of AuthHub --> Passing the scim user ID = userLoginid  on a DELETE method to the following API https://{{sspHost}}/{{apiPathTenant}}/admin/v1/Users/{{userLoginid}} used to work Fine  
  • Current Release ( by current it is 2.2.2.1012 in UAT) --> Passing the scim user ID = userLoginid  on a DELETE method to the following API https://{{sspHost}}/{{apiPathTenant}}/admin/v1/Users/{{userLoginid}} results in the following failure

API:

https://{{sspHost}}/{{apiPathTenant}}/admin/v1/Users/{{userLoginid}}
Method: DELETE
Error message:

{
"errorCode": "0000051",
"errorMessage": "Invalid user id"
}

Environment

Any AuthHub release above 2.x release  

Resolution

The change was done by design and classified as needed change in the latest AuthHub releases to ensure that the wrong user is NOT deleted.

 User Delete API changed from this  --> https://{{sspHost}}/{{apiPathTenant}}/admin/v1/Users/{{userLoginid}}

to This  --> https://{{sspHost}}/{{apiPathTenant}}/admin/v1/Users/{{userId}} and no longer Accept userLoginid  returned by SCIM service.

Client using SCIM will need to look up the USER ID first and then use it in the DELETE API.