<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z0000A4i091CQAOkta Classic EngineIntegrationsAnswered2024-04-30T17:40:27.000Z2024-04-22T16:42:43.000Z2024-04-30T17:40:27.000Z

SCIM Provisioning error with Okta SCIM API

I have written a simple SCIM server that provisions / deprovision / update users. To provision the user the Okta makes first call to identify if the user exists in remote directory - /scim/v2/Users?filter=userName%20eq%20%22user2%40gmail.com%22&startIndex=1&count=100 HTTP/1.1

 

To which SCIM server responds with below message

{

"Resources": [],

"itemsPerPage": 0,

"schemas": [

"urn:ietf:params:scim:api:messages:2.0:ListResponse"

],

"startIndex": "1",

"totalResults": 0

}

I see that okta events do not give much details and fails with below event without making next call to SCIM server to provision the user.

 

{

 "actor": {

   "id": "00uae045t0RPH343N5d7",

   "type": "User",

   "alternateId": "user@company.com", (edited by Moderator)

   "displayName": "username", (edited by Moderator)

   "detailEntry": null

 },

 "client": {

   "userAgent": null,

   "zone": null,

   "device": null,

   "id": null,

   "ipAddress": null,

   "geographicalContext": null

 },

 "device": null,

 "authenticationContext": {

   "authenticationProvider": null,

   "credentialProvider": null,

   "credentialType": null,

   "issuer": null,

   "interface": null,

   "authenticationStep": 0,

   "externalSessionId": "trslqH0Ik8MQ9e-QKOIsH_qPA"

 },

 "displayMessage": "Sync user in external application",

 "eventType": "application.provision.user.sync",

 "outcome": {

   "result": "FAILURE",

   "reason": null

 },

 "published": "2024-04-21T12:47:34.228Z",

 "securityContext": {

   "asNumber": null,

   "asOrg": null,

   "isp": null,

   "domain": null,

   "isProxy": null

 },

 "severity": "ERROR",

 "debugContext": {

   "debugData": {

     "appname": "scim2headerauth"

   }

 },

 "legacyEventType": "app.user_management.provision_user_failed",

 "transaction": {

   "type": "JOB",

   "id": "pujgl88nx0RbEW2VX5d7",

   "detail": {}

 },

 "uuid": "531c4191-ffdd-11ee-93ef-a539342b0d02",

 "version": "0",

 "request": {

   "ipChain": []

 },

 "target": [

   {

     "id": "0uagl88nwyagnC9Bu5d7",

     "type": "AppUser",

     "alternateId": "user-upd@gmail.com",

     "displayName": "user-fn1-up user-ln1",

     "detailEntry": null

   },

   {

     "id": "00ubhrjzodHO7J5MA5d7",

     "type": "User",

     "alternateId": "user-upd@gmail.com",

     "displayName": "user-fn1-up user-ln1",

     "detailEntry": null

   },

   {

     "id": "0oadljnwjbOcxTKha5d7",

     "type": "AppInstance",

     "alternateId": "SCIM 2.0 Test App (Header Auth)-oloid-local",

     "displayName": "SCIM 2.0 Test App (Header Auth)",

     "detailEntry": null

   }

 ]

}

 

This does not give much details of why Okta failed to read response.

 

Thanks,

Vijay Kumar

 


This question is closed.
Loading
SCIM Provisioning error with Okta SCIM API
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply