# Error monitoring with SCIM integration

**URL:** <https://devforum.okta.com/t/error-monitoring-with-scim-integration/25748>\
**Category:** Hackathons\
**Created:** [November 5, 2023, 12:43pm UTC](https://devforum.okta.com/t/error-monitoring-with-scim-integration/25748 "2023-11-05T12:43:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fiona1498](https://avatars.discourse-cdn.com/v4/letter/f/838e76/32.png) [@fiona1498](https://devforum.okta.com/u/fiona1498)\
**Post date:** [November 5, 2023, 12:43pm UTC](https://devforum.okta.com/t/error-monitoring-with-scim-integration/25748/1 "2023-11-05T12:43:59Z")

</div>

I have a custom SCIM server and I am deleting users from Okta but my delete API sometimes fails and doesn’t return the right response or fails, how do I add some kind of alerting or monitoring around this?

---

<div class="post-metadata">

**Author:** ![monishb](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@monishb](https://devforum.okta.com/u/monishb)\
**Post date:** [November 5, 2023, 1:06pm UTC](https://devforum.okta.com/t/error-monitoring-with-scim-integration/25748/2 "2023-11-05T13:06:41Z")

</div>

Hey, @fiona1498 , welcome to the community!  
That’s a great question, you can do this using even-hooks from Okta. Dropping in some useful links for you below. But to put this into perspective, with Okta Event logging you could do things like whenever you receive a specific event error type, you can call another external API to send this error info (Example: Slack alerts, Email Alerts)

What are event hooks: [Event hooks concepts | Okta Developer](https://developer.okta.com/docs/concepts/event-hooks/)  
How to implement event hooks: [Event hook implementation | Okta Developer](https://developer.okta.com/docs/guides/event-hook-implementation/nodejs/main/)  
Event types available: [Event Types | Okta Developer](https://developer.okta.com/docs/reference/api/event-types/#catalog)

Here you would most probably be listening and handling **application**.integration.general\_failure and performing whatever steps are necessary.

This is also a good time to note that Okta doesn’t fully support the DELETE route for users in a traditional way, it instead marks the user as de-provisioned, which means the user is set to `active: false` when delete is called on them and you would need to handle this within your app separately.

You may also want to look at this:

> **[SCIM - frequently asked questions | Okta Developer](https://developer.okta.com/docs/concepts/scim/faqs/)**
>
> Answers to your questions about how SCIM works with Okta.

This being said, there is yet another way to achieve this same effect using [Okta Workflows](https://help.okta.com/wf/en-us/content/topics/workflows/workflows-main.htm) where you would essentially build step-based blocks, and one step would send a message on Slack based on these conditions. But I believe this needs some extra registrations and accesses

---

<div class="post-metadata">

**Author:** ![fiona1498](https://avatars.discourse-cdn.com/v4/letter/f/838e76/32.png) [@fiona1498](https://devforum.okta.com/u/fiona1498)\
**Post date:** [November 5, 2023, 1:40pm UTC](https://devforum.okta.com/t/error-monitoring-with-scim-integration/25748/3 "2023-11-05T13:40:04Z")

</div>

Awesome @monishb , thank you so much! I’ll take a look at this

---

<div class="post-metadata">

**Author:** ![sigama](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/sigama/32/5811_2.png) [@sigama](https://devforum.okta.com/u/sigama)\
**Post date:** [November 5, 2023, 7:38pm UTC](https://devforum.okta.com/t/error-monitoring-with-scim-integration/25748/4 "2023-11-05T19:38:34Z")

</div>

@fiona1498 welcome! I talk about some debugging tools I’ve used to monitor incoming requests to the scim server here [Enterprise-Ready Workshop: Manage users with SCIM | Okta Developer](https://developer.okta.com/blog/2023/07/28/scim-workshop#view-requests-to-and-from-the-app). Okta doesn’t have verbose logging for scim requests atm. I recommend using [ngrok](https://ngrok.com/) or [Morgan](https://github.com/expressjs/morgan) to review status requests/logs; keep in mind these recommendations are good for testing and not for production.
