Why Okta SCIM provisioning fails, and how to read the errors it leaves behind
When Okta can't create or switch off an account in a connected app, the error lands in Dashboard > Tasks. Here's what the common SCIM errors mean, where to look on both sides, and how to stop leavers keeping access.
part 17 of 18 · Identity security, from the ground upthe ideaStart with the message in Tasks. It usually says which side refused.
after reading, you can- Work out from a Tasks message whether Okta's settings or the app broke the push
- Follow one failed push from the System Log to the matching request in your SCIM server's logs
- Find the settings and server habits that quietly leave leavers with working app accounts
When Okta can't create, update or switch off someone's account in a connected app, the person usually finds out first: no access on day one, or a leaver who can still sign in. Failed attempts show up on Dashboard > Tasks, often with the app's own error text, and the usual causes are a short list of settings and server behaviours you can check in an afternoon.
Someone's account didn't get created or removed, because the app turned Okta down
Okta is the place many companies use to sign people in to their work apps. With provisioning switched on, Okta also creates each person's account in those apps, keeps their details up to date and switches the account off when they leave. For most apps it does this over SCIM, a standard way for two systems to exchange user accounts. Okta sends a request, the app answers. When the app answers with an error, or doesn't answer in time, the account isn't created or isn't switched off, and Okta records the failure on a Tasks page that someone has to read. This guide explains what those errors mean and where to fix each one.
Think of HR sending a form to the building's front desk for every new starter and every leaver. If the desk sends a form back because a field is missing, or the badge printer is out of cards, the starter waits at the door and the leaver keeps a working badge. Nothing gets fixed until someone reads the returned forms.
- Okta administrators
- IT teams running joiners and leavers
- Developers building a SCIM server for Okta
- Security and audit teams checking leavers
- App owners whose app Okta provisions
A failed push usually costs more than one help desk ticket
A failed create is the visible one. Someone starts on Monday and can't get into the tools their team uses, so a manager raises a ticket and somebody creates the account by hand. That manual account isn't linked to Okta, and it causes trouble later, when Okta tries to create it again.
A failed deactivation is the one that hurts. Okta marks the leaver as done, the app still has an active account, and nobody looks at the Tasks page until an auditor asks for a leaver report. Okta's design makes this easy to miss: it only ever sets active=false, it never deletes the user, and Okta's SCIM reference says no deprovisioning event goes out for users who are only suspended in Okta.
Most of these failures come down to timing and settings, and few of them need code. They do need someone to own the Tasks page and to know which errors come from Okta and which from the app.
-
01 You assign the app
An admin or a group rule gives someone the app. Okta works out what to send from its attribute mappings.
-
02 Okta checks for a match
Okta sends GET /Users with filter=userName eq and the username. The app returns the match, an empty list, or a 404.
-
03 Create or link
No match and Create Users on: Okta POSTs the user. A match: Okta stores the app's id as the externalId and links the two accounts.
-
04 Keep it in step
Profile changes go out as PUT for App Integration Wizard apps, or PATCH for activation and deactivation in newer OIN apps.
-
05 Switch it off
Unassign or deactivate the user and Okta sets active=false in the app, if Deactivate Users is on. Okta sends no DELETE.
-
06 Record the result
If anything fails, you'll find it in Dashboard > Tasks, often with the app's message. The System Log records an error event too.
For engineers: Okta's SCIM 2.0 reference treats an empty ListResponse with totalResults 0 and a 404 error body as equally valid ways to say no match. Your server must also support the eq filter on whatever attribute you configured as the unique identifier, because Okta runs that check before every create. Requests arrive with the user agent Okta SCIM Client 1.0.0, which makes them easy to pick out of your own access logs.
Where the evidence sits, on both sides
Start in Okta, because Okta keeps the app's error text. Go to the app's own logs only once you know which call failed and when. If the app is someone else's SaaS product, its error text in Okta is often all you'll get, so read it slowly.
| Place | Where | What it tells you |
|---|---|---|
| Tasks | Admin Console, Dashboard > Tasks | Each failed provisioning action with the app's message, and Retry Selected once you've fixed the cause |
| System Log | Admin Console System Log, or the System Log API | Error events such as application.provision.user.push, with time, actor and target |
| Push Groups errors | App > Push Groups tab > Pushed Groups > Errors | Failed group pushes. The (i) icon under Push Status shows the time and a likely cause |
| API credentials | App > Provisioning > Integration, Test API Credentials | Whether Okta can still authenticate to the app with the stored admin account or token |
| To App settings | App > Provisioning > To App | Whether Create Users, Update User Attributes and Deactivate Users are switched on |
| Import results | App > Import tab | Users Okta matched, didn't match, or is waiting for an admin to confirm |
| Your SCIM server logs | Your own app or gateway | The exact request Okta sent, your response code and body, and how long you took to answer |
The System Log query syntax filters on event type, so eventType eq "application.provision.user.deactivate" pulls the deactivation errors for every app at once. Okta's list of provisioning integration error events names one event per action: user push, push_profile, deactivate, reactivate, verify_exists, the group and group membership actions, and the integration-level authentication_failure and rate_limit_exceeded.
Read the target of each event to see which app and user it concerns. Okta says authentication_failure typically points to a wrong or expired credential, so a burst of them on one app is one fix. In our view, a single push_profile error on one user is more often bad data on that user.
The errors you'll see, and what each one usually means
The table quotes the messages Okta and its SCIM reference document. The order is ours, roughly how often each cause turns up in setups that work most of the time. Your app may phrase its own errors differently, since Okta shows whatever the app returns.
| What you see | Usual cause | Fix it in |
|---|---|---|
| "Matching user not found." | Create Users is off, so Okta looked for an existing account, found none and stopped | Provisioning > To App: enable Create Users, then Retry Selected in Tasks |
| "The credentials used to connect to the API were invalid; please check your configuration" | The app admin account or token Okta uses expired, changed or was disabled | Provisioning > Integration: re-enter credentials, run Test API Credentials |
| "License Limit Exceeded." | The app has no free licence or role for the assignment | The app's licence count, then Retry Selected |
| "Create new user returned empty user." | The SCIM server answered the POST with an empty body | Your SCIM server: return the created user, with its id |
| 409 Conflict from the app | The account already exists in the app, and your filter didn't find it | Your server's userName filter and uniqueness rules |
| Task paused for API rate limiting | The app returned HTTP 429. Okta waits and retries by itself | Nothing at first. If it keeps failing, the app's limits or batch timing |
| Group push error | Shown on the Errors tab with a likely cause, for example a group deleted directly in the app | Push Groups tab, then Retry All Groups |
| Members missing or left over in app groups | Inactive users aren't pushed, or one group is used for both assignment and push, often with no error | Separate assignment and push groups, reactivate and repush |
| Leaver still active in the app | Deactivate Users is off, the user was only suspended, or the app ignores active=false | To App settings and your server's handling of active |
"Matching user not found" confuses people because it sounds like the app lost someone. Okta's help explains it plainly: the API connection works, but nobody turned on Create Users after saving the integration, so Okta could only link to an account that already existed. Developers on Okta's forum hit the same message for a second reason. Their server didn't answer the filter=userName eq query properly, so Okta couldn't confirm whether the user existed.
Credential errors usually start on a date nobody wrote down: the app admin's password expired, someone renamed or disabled that account, or a token reached its end. Check that the account can still sign in to the app directly. If it can, re-enter it in Okta. Developers on Okta's forum also describe SCIM connections with long-lived OAuth tokens turning unauthorized with no change on either side, so put the token's issue date and owner somewhere people will look.
409 Conflict is the app doing its job. SCIM's protocol spec defines 409 as the server refusing to create a duplicate, and Okta's reference asks for exactly that response when the user already exists. Ask yourself why Okta's lookup didn't find the account first. SCIM's core schema makes userName case-insensitive, so a server that compares usernames case-sensitively will miss Jane.Doe when Okta asks for jane.doe, and then refuse the create.
Rate limits usually need nothing from you at first. When a SCIM app returns 429, Okta pauses the task, marks it as rate limited and reschedules it. It waits the number of seconds in Retry-AfterdefinitionAn HTTP header an app sends with a 429 to say how many seconds to wait. Okta reads whole seconds only., or five minutes if the header is missing or uses a date format, then doubles the wait each time. After ten failed attempts the task fails for good. If you build the SCIM server, send Retry-After as plain seconds, since Okta ignores the date form.
From a vague ticket to the failing call
Work one failure end to end before you retry anything in bulk
- 01Get one user, one app and a time
Ask who's affected, which app, and when the assignment or removal happened. One concrete failure is easier to trace than a vague report that provisioning is broken.
- 02Read the task in Dashboard > Tasks
Copy the exact message. Note whether it starts with Okta's own wording, such as Matching user not found, or quotes the app's error. That tells you which side to fix.
- 03Find the event in the System Log
Filter on the provisioning event type for that action and the time window. Check the target app and user, and look for the same event across other users to see how wide it is.
- 04Check the integration before the user
Open Provisioning > Integration and run Test API Credentials. Then open To App and confirm Create Users, Update User Attributes and Deactivate Users are on where you expect them.
- 05Read the matching request on the app side
If you run the SCIM server, find Okta's request by time and user agent. Check the response code, the body you returned and how long you took. Anything near 60 seconds is a problem.
- 06Fix the cause, then retry
Correct the setting, the licence or the server behaviour. Then select the affected users in Tasks and click Retry Selected. For groups, use Retry All Groups on the Push Groups tab.
- 07Confirm it from the app's side
Look the user up in the app itself. A task disappearing from Okta's Tasks page doesn't prove the account looks the way you meant, especially after a deactivation.
When the cause is in Okta's mappings, edit them under the app's Provisioning tab via Go to Profile Editor and Mappings, then click Apply updates now. Okta's concepts page warns that a SCIM server out of sync with Okta might not receive updates for the out-of-sync attributes, so after a mapping fix, check one changed user in the app.
Group push failures have their own recovery. If someone deleted a pushed group directly in the app, Okta's help says to delete the pushed group in Okta and choose Leave the group in the target app, run an import from the app, then retry the push. Engineers managing pushes in Terraform report the okta_push_group mapping getting stuck in an error state after a push conflict, so expect to fix that one by hand in the Admin Console.
What changes with how the integration was built
The same app can behave differently depending on whether it came from the Okta Integration Network or someone built it with the App Integration WizarddefinitionThe wizard you use to build a custom app integration in your own Okta org. SCIM apps built with it send every update as PUT, and you can't change that.. This matters most when you write the SCIM server, because Okta's choice of HTTP method follows the integration type, and you can't change it yourself.
| Operation | App Integration Wizard (custom) | Newer OIN integrations |
|---|---|---|
| Profile updates | PUT with the full user | PUT with the full user |
| Activate and deactivate | PUT with active true or false | PATCH on active |
| Password sync | PUT | PATCH |
| Group name and membership | PUT | PATCH |
| Switch method | Can't be changed to PATCH | Ask your Okta account team to change to PUT |
| Delete a user | Never sent | Never sent |
One developer on Okta's forum describes deactivation arriving as a PUT with active set to false and their app's logic failing on it. That's the AIW pattern from the table. If your server handles deactivation only in its PATCH code path, AIW integrations will send something it doesn't expect.
For imports Okta pages through /Users with count=100 and moves startIndex on by 100 each time. The reference asks for itemsPerPage, startIndex and totalResults as integers, and for the same ordering on every page. A server that sorts differently between calls can skip or repeat users during an import.
Set it up so failures are rare and loud
- Somebody saved the integration and never switched on Create Users or Deactivate Users
- One Okta group does app assignment and Group Push, so leavers stay in app groups
- App credentials owned by one admin, with an expiry nobody tracks
- SCIM server compares usernames case-sensitively
- Deactivation handled only in the PATCH code path
- Nobody owns Dashboard > Tasks
- Someone rechecks To App after every change to the integration
- Assignment and Group Push use separate groups. Okta's help tells you to set it up that way
- Credentials sit on a service account someone owns, and the renewal date is on the team calendar
- The server treats userName as case-insensitive, the way SCIM says, and answers the eq filter
- active=false handled on PUT and PATCH, and tested with a real leaver
- Somebody checks Tasks every day, and the SIEM gets the provisioning error events
Okta's developer guides give SCIM server builders a Runscope spec test, a separate Runscope CRUD test and a manual QA suite for OIN submissions. Run them against staging before every change to user handling. Okta's spec test even sends the username in capitals, to see whether your server treats it as the same user.
Before: provisioning that drifts without telling anyone
One Okta group drives both app assignment and the pushed group. The SCIM server misses mixed-case usernames, and the Tasks page fills up with errors nobody reads.
After: every failure lands with someone who acts on it
Assignment and push use separate groups. The SCIM server matches usernames the way SCIM expects and handles active=false on every method, and provisioning error events go to the team's alerting.
If the app returns validation errors, make them say what's wrong. Okta doesn't strictly validate attribute values before it sends them. Its SCIM FAQ says the app should return clear, descriptive errors, which Okta then shows in Tasks and Alerts. "Bad request" with no detail leaves the admin guessing every time it appears.
Who does what when provisioning fails
- Pick one person to read Dashboard > Tasks every working day. Give them a backup for holidays
- Ask for a monthly count of open provisioning tasks per app, with deactivation failures listed separately
- Decide which apps must be switched off on the leaver's last day, and check those first
- Open Dashboard > Tasks, group the errors by app and message, and fix the credential and setting errors first
- Check To App on every provisioned app: Create Users, Update User Attributes and Deactivate Users
- Find groups used for both assignment and Group Push and split them, following Okta's two documented fixes
- Make GET /Users?filter=userName eq answer with the match, an empty list or a 404. Compare usernames without regard to case
- Send back the new user and its id after a POST. If the user already exists, answer 409 so Okta stops
- Handle active=false on PUT and on PATCH, and send Retry-After in seconds with every 429
- Send application.provision.user.deactivate errors to the SIEM and alert on them
- Compare leavers from HR with active accounts in the apps that matter most, at least once a quarter
- Ask how suspended users are handled, since Okta sends no deprovisioning event for them
If provisioning breaks for many users at once
Mass failures usually follow a change on one side: an expired credential, a new mapping, an app release or a group rule edit. Find the most recent change before you retry anything.
- 01Containfirst hour
- Work out whether one app or every app is failing. One app points at its credentials or server, all of them at a mapping or group rule
- Pause group rule or mapping changes until you know the cause, so the backlog stops growing
- Let the help desk know what users will see. Give them a time for the next update
- 02Find the causefirst hours
- Group the Tasks entries by message. One message across hundreds of users is one cause
- Run Test API Credentials, then read the app's side for one failed request
- If the tasks say rate limited, leave them alone while Okta works through its retries
- 03Fix and retrysame day
- Fix the setting, credential or server behaviour, then retry a handful of users first
- Once those succeed, select the rest in Tasks and click Retry Selected
- Group pushes retry separately. Fix the group, then click Retry All Groups on the Push Groups tab
- 04Check leaverssame week
- Pull every deactivation that failed during the incident. Then check each of those accounts in the app by hand
- Switch off any account that's still active, and keep a record for the auditors
- Look for accounts created by hand while provisioning was down, and link or remove them
- 05Learnnext sprint
- Add an alert for the error event that would have caught this earlier
- If a credential caused it, write down who owns it and when it expires, somewhere the team will see
Failures you might recognise (illustrations, not clients)
- the setup
- An admin connected a SaaS app's SCIM API, tested a create and saved. Deactivate Users was never switched on in To App.
- what happens
- Unassigning leavers in Okta does nothing in the app, and there may be nothing in Tasks to warn anyone. The gap shows up in a quarterly access review.
- what to do
- Switch on Deactivate Users, then compare the app's active accounts with Okta's assignments and switch off the extras. Add the To App check to every integration change.
- the setup
- A team built its own SCIM server with the App Integration Wizard. The user lookup compares usernames case-sensitively, and some accounts were made by hand in mixed case.
- what happens
- Okta looks up the lowercase username and gets nothing back. So it tries to create the user, and the app refuses with 409 because the account is already there. Tasks fills up with conflicts.
- what to do
- Make the userName filter case-insensitive, as SCIM's core schema expects, then retry. Okta will find the existing accounts and link them instead of creating new ones.
- the setup
- A company's SCIM server was written against an OIN example, so its deactivation code only runs on PATCH. Okta connects to it through a custom App Integration Wizard app.
- what happens
- Okta sends deactivation as a PUT with active false. The server treats it as an ordinary profile update and leaves the account active, or returns an error that lands in Tasks.
- what to do
- Handle active=false on PUT as well as PATCH, then deactivate a test user and confirm it in the app. Re-check every leaver since go-live.
- the setup
- A group rule assigns an app to a few thousand people at once. The app rate-limits its SCIM API and sends Retry-After as a date.
- what happens
- Okta pauses the tasks and marks them rate limited. It can't read a date, so it falls back to five minutes and doubles the wait after each miss. The backlog clears slowly.
- what to do
- Leave the tasks to retry. If you own the server, send Retry-After in seconds. For the next batch, assign in smaller waves.
When to hand it to someone else
If the message quotes the app, and the app is a SaaS product you don't run, open a case with that vendor and include the exact text, the time and the username. If Okta's own wording is the problem, or retries keep failing after you've fixed the credential and settings, open a case with Okta support and attach the System Log events. For OIN integrations, the vendor and Okta set up the filter attribute together during submission, so a lookup that keeps missing users there is the vendor's to fix.
How Cohash helps
We set up and run Okta lifecycle management, from HR-driven provisioning and attribute mappings to SCIM integrations and leaver testing. If your Tasks page has a backlog or you're building a SCIM server for Okta, see our Okta page and our identity and access management practice, or start with an identity assessment.
What to take from this
- 01
Start with Dashboard > Tasks. The message there usually tells you whether Okta's settings or the app is at fault.
- 02
When you see "Matching user not found", check Create Users first. Forum reports point at the app's userName filter next.
- 03
Okta never deletes users over SCIM. It sets active=false, and only if Deactivate Users is on.
- 04
Suspended users get no deprovisioning event, so check them separately in leaver reviews.
- 05
Don't use one group for both app assignment and Group Push. Okta doesn't support it.
- 06
Rate-limited SCIM tasks get up to ten attempts on their own. Send Retry-After in seconds.
01Where do I see Okta provisioning errors?
In the Admin Console under Dashboard > Tasks. Failed creates, updates and deactivations appear there, often with the app's own message. The System Log also records provisioning error events, such as application.provision.user.push for a failed create.
02What does "Matching user not found" mean in Okta?
Okta's help says it can mean Create Users is off in the app's To App settings. Okta looked for an existing account, didn't find one, and wasn't allowed to create one. Turn on Create Users and retry from Tasks. Developers on Okta's forum also report it when the app can't answer Okta's userName eq filter.
03Does Okta delete users in the app when I remove them?
No. Okta sets active to false on the user in the app and never sends DELETE for users. If an admin deletes a deactivated user in Okta, the app's record isn't changed. Removing the account fully is up to the app.
04I suspended someone in Okta. Why can they still use the app?
Okta sends no deprovisioning event for suspended users. Their app accounts stay as they were until you deactivate the user in Okta or unassign the app, with Deactivate Users switched on.
05How do I retry failed provisioning tasks in Okta?
Fix the cause first, such as the credential, licence or setting. Then go to Dashboard > Tasks, select the affected users and click Retry Selected. For failed group pushes, use Retry All Groups on the app's Push Groups tab.
06What happens when the app rate-limits Okta?
For SCIM integrations, Okta pauses the task and tries again later, so you usually don't need to do anything. It waits the seconds in Retry-After, or five minutes if the header is missing or holds a date, and doubles the wait after each failure. After ten failed attempts the task stops and someone has to deal with it.
07Why does my SCIM server get PUT instead of PATCH?
Integrations built with the App Integration Wizard send every update as PUT, including activation and deactivation, and you can't switch them to PATCH. Newer OIN integrations use PATCH for activation, deactivation and password sync.
08We assign the app and push the group from one Okta group. Is that a problem?
Okta doesn't support it. A deactivated user can stay in the downstream group, because Okta loses track of that membership. Use one group for assignment and another for Group Push.
Three questions, about a minute
Pick an answer and we'll tell you if it's right, and why it is or isn't. The score stays in this browser.
-
Q1Tasks shows "Matching user not found" for every new starter on one app since it was connected. What do you check first?
show the answer
B. Whether someone left Create Users off under To App Okta's help ties this message to an integration saved without Create Users. Okta looks for a match, finds none, and isn't allowed to create the account.
-
Q2A custom SCIM app built with the App Integration Wizard never deactivates leavers, and its PATCH handler works. Why?
show the answer
C. Okta sends deactivation as a PUT with active=false AIW integrations send every update as PUT, including deactivation. A server that only handles active=false in its PATCH path misses it.
-
Q3Hundreds of tasks show as rate limited after a bulk assignment. What's the best first move?
show the answer
A. Leave them. Okta backs off and makes up to ten attempts per task Okta handles 429 by pausing and retrying with a growing wait. You only step in if a task still fails on the tenth attempt.