# SCIM Integration issues with AWS Lambda

**URL:** <https://devforum.okta.com/t/scim-integration-issues-with-aws-lambda/31435>\
**Category:** SCIM\
**Created:** [December 10, 2024, 1:47pm UTC](https://devforum.okta.com/t/scim-integration-issues-with-aws-lambda/31435 "2024-12-10T13:47:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranil.bhavsar](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@pranil.bhavsar](https://devforum.okta.com/u/pranil.bhavsar)\
**Post date:** [December 10, 2024, 1:47pm UTC](https://devforum.okta.com/t/scim-integration-issues-with-aws-lambda/31435/1 "2024-12-10T13:47:36Z")

</div>

Hey all,  
recently trying to build an integration for SCIM provisioning on my application. The current set up includes an API gateway triggering a lambda function. That function has support for all GET,POST,PATCH,DELETE for both /USERS and /GROUPS.

I am running into an issue with a few things:

1. When i assign someone to the app, it initiates a GET and a subsequent POST for user. But on unassigning the person from the app, it doenst trigger a DELETE request. I also made sure that the provisioning integration has deactivate users enabled.

2. How do i add a custom attribute to the user for my app? i tried creating a custom attribute in profile editor for the app and also added respective mappings but after account creation, the user shows thai need to “reapply mappings” and when i click on it it triggers a failure “Automatic profile push of user p b to app ToxMod - Cloud Env failed: Error while trying to push profile update for [testuser@gmail.com](mailto:testuser@gmail.com): No user returned for user [testuser@gmail.com](mailto:testuser@gmail.com)”

---

<div class="post-metadata">

**Author:** ![edwin.rajz](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@edwin.rajz](https://devforum.okta.com/u/edwin.rajz)\
**Post date:** [December 11, 2024, 3:45pm UTC](https://devforum.okta.com/t/scim-integration-issues-with-aws-lambda/31435/2 "2024-12-11T15:45:54Z")

</div>

Hello,

Okta doesn’t perform DELETE operations on User objects in your SCIM app.

If a user is deactivated or removed from your integration inside Okta, then Okta sends a request to your SCIM app to set the `active` attribute to `false`.

Please review [this article](https://support.okta.com/help/s/article/create-a-custom-app-attribute-in-okta-for-an-application-that-does-not-support-schema-discovery-for-scim-provisioning?language=en_US) on how to add custom attributes.

---

<div class="post-metadata">

**Author:** ![pranil.bhavsar](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@pranil.bhavsar](https://devforum.okta.com/u/pranil.bhavsar)\
**Post date:** [December 11, 2024, 5:19pm UTC](https://devforum.okta.com/t/scim-integration-issues-with-aws-lambda/31435/3 "2024-12-11T17:19:17Z")

</div>

Thanks This helps! but what about issue 2 ? do you have any idea about it?

---

<div class="post-metadata">

**Author:** ![pranil.bhavsar](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@pranil.bhavsar](https://devforum.okta.com/u/pranil.bhavsar)\
**Post date:** [December 11, 2024, 6:34pm UTC](https://devforum.okta.com/t/scim-integration-issues-with-aws-lambda/31435/4 "2024-12-11T18:34:42Z")

</div>

i am consistently getting this error log on okta whenever i try to make attribute update to an assigned user 🙂 "  
{  
“actor”: {  
“id”: “00ufo2k8bkW0aYRVa5d7”,  
“type”: “User”,  
“alternateId”: “p.b@test”,  
“displayName”: “pr br”,  
“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,  
“rootSessionId”: “10246JBH1iyQPChJ81JXyhkQg”,  
“externalSessionId”: “trsoKu4QBSISGqnWu9QzljHvA”  
},  
“displayMessage”: “Push user’s profile to external application”,  
“eventType”: “application.provision.user.push\_profile”,  
“outcome”: {  
“result”: “FAILURE”,  
“reason”: null  
},  
“published”: “2024-12-11T18:31:35.908Z”,  
“securityContext”: {  
“asNumber”: null,  
“asOrg”: null,  
“isp”: null,  
“domain”: null,  
“isProxy”: null  
},  
“severity”: “ERROR”,  
“debugContext”: {  
“debugData”: {  
“appname”: “dev-70021382\_testcognito\_1”  
}  
},  
“legacyEventType”: “app.user\_management.push\_profile\_failure”,  
“transaction”: {  
“type”: “JOB”,  
“id”: “psjlsquh8lFGtFd6A5d7”,  
“detail”: {}  
},  
“uuid”: “272c2a64-b7ee-11ef-8fc8-5bca8bf0a30b”,  
“version”: “0”,  
“request”: {  
“ipChain”:   
},  
“target”: [  
{  
“id”: “0ualsqrh8wTckND5b5d7”,  
“type”: “AppUser”,  
“alternateId”: “test@gmail”,  
“displayName”: “p b”,  
“detailEntry”: null  
},  
{  
“id”: “00ulsk8yrfq1LNH5o5d7”,  
“type”: “User”,  
“alternateId”: “test@gmail”,  
“displayName”: “p b”,  
“detailEntry”: null  
},  
{  
“id”: “0oafowtzmq7BaB7725d7”,  
“type”: “AppInstance”,  
“alternateId”: “ToxMod - Cloud Env”,  
“displayName”: “ToxMod - Cloud Env”,  
“detailEntry”: null  
}  
]  
}  
"

---

<div class="post-metadata">

**Author:** ![edwin.rajz](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@edwin.rajz](https://devforum.okta.com/u/edwin.rajz)\
**Post date:** [December 31, 2024, 10:14am UTC](https://devforum.okta.com/t/scim-integration-issues-with-aws-lambda/31435/5 "2024-12-31T10:14:18Z")

</div>

Please make sure “External name” and “External Namespace” are correctly defined when creating the attribute.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 30, 2025, 10:14am UTC](https://devforum.okta.com/t/scim-integration-issues-with-aws-lambda/31435/6 "2025-01-30T10:14:32Z")

</div>

Closed on January 30, 2025, 10:14am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
