developer.sailpoint.com icon indicating copy to clipboard operation
developer.sailpoint.com copied to clipboard

[Bug] Undocumented DELETE endpoint for deleting Entilements

Open kjakubiak opened this issue 2 years ago • 11 comments

Describe the bug A clear and concise description of what the bug is. DELETE Endpoint exists within Entitlement class and can be used using Beta collection however this infomation is not present in neither documentation nor in collection itself. Furthermore there is reference in the main Entitlements section to the documentation about deleting objects image

Where it's clearly stated it's not possible to delete entitlement via api but it is. image

kjakubiak avatar Nov 26 '23 19:11 kjakubiak

🎉 Thanks for opening your first issue here! Be sure to follow the issue template, and welcome to the community! 🙌

codey-bot[bot] avatar Nov 26 '23 19:11 codey-bot[bot]

Hi @kjakubiak,

Could you please explain a more about your issue. I was not able to find any delete endpoint.

anitarodia avatar Nov 30 '23 12:11 anitarodia

Hi @anitarodia, That's the point - generaly in documentation it states it is not possible to delete entitlement image

But actualy I did deleted the entitlement from IDN that way image

And I believe this is what is missing in the documentation that it can be done.

kjakubiak avatar Dec 01 '23 12:12 kjakubiak

When I tried it, I got 405 Method not Allowed image

anitarodia avatar Dec 01 '23 13:12 anitarodia

Hi @anitarodia I just get one entitlement image

Now I execute DELETE method image

And now when I try to get it again - I get not found image

kjakubiak avatar Dec 01 '23 13:12 kjakubiak

This is interesting. I tried the same as you with the Beta endpoint but I always got 405.

image image

Allow Header is the response : image

anitarodia avatar Dec 01 '23 14:12 anitarodia

This are the headers I have when executing DELETE image don't even have allow - might it be something specific to my environment? I am testing this on my partner instance

kjakubiak avatar Dec 01 '23 14:12 kjakubiak

I think so, I will also test this on other instances.

anitarodia avatar Dec 01 '23 16:12 anitarodia

Hi @anitarodia, Any news?

kjakubiak avatar Dec 04 '23 14:12 kjakubiak

Hi @kjakubiak,

Yes, I did tried it with other tenants but I got 405 Method Not Allowed for each.

anitarodia avatar Dec 04 '23 16:12 anitarodia

This issue has been mentioned on SailPoint Developer Community Forum. There might be relevant details there:

https://developer.sailpoint.com/discuss/t/delete-stucked-entitlement/23146/2

jordan-violet-sp avatar Dec 22 '23 12:12 jordan-violet-sp