
FlorianB.66224 (Customer) asked a question.
I'm curious about a scenario where I would like to prevent assignment to an application in Okta if there are no licenses available in the external application. The problem is that the external app supports JIT provisioning so even if too many people get assigned in Okta the license limit would be breached.
I was thinking that maybe this could be achieved by making an API call to check if there are licenses available and only if that is the case allow assigning the Okta application.

Hi,
This could be possible via Event Hooks as outlined in our documentation below:
https://developer.okta.com/docs/concepts/event-hooks/
If further assistance is needed, please open up a proper support ticket with Okta Customer Support.
Liviu Scarlat
Technical Support Engineer
Okta Global Customer Care