Skip to main content

The user deletion API currently only cater for InSided community user ID.

Since the authentication of SSO is mapping to our own internal ID, deletion using the API would not work.

https://api2-us-west-2.insided.com/docs/user/#operation/erase

https://api2-us-west-2.insided.com/user/{id}/erase

Suggesting to have an API, https://api2-us-west-2.insided.com/user/{oauth2_sso_id}/erase

this would benefit all InSided clients that are using oauth2 authentication

 

Hi @zoe_wxyz, and thank your for submitting your idea!

You’re right, there currently isn’t a one-stop-shop kind of endpoint for deleting users via the external SSO ID. However, there is a workaround that takes only a little more work:

  1. Query the user via this endpoint - for you that would be https://api2-us-west-2.insided.com/user/oauth2_sso_id/{sso_id}
  2. Extract the user ID from the response and pass it to the delete endpoint.

By only supporting these various different parameters for the “find” operation, we allow for a lot of flexibility, but don’t have to maintain multiple versions for every possible endpoint.

Please let me know if that solves your immediate issue 🙂

I’ll leave the idea open in case other users might want to chime in with their use cases, but we’ll probably not add a dedicated endpoint for this in the near future (unless there’s a really strong case, never say never 😅)


NewOpen