# HTTP Operation Disable body

**URL:** <https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183>\
**Category:** SHF Discussion and Questions\
**Tags:** webservice-connector, sailpoint-identity-security, provisioning, apis\
**Created:** [August 1, 2024, 11:40pm UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183 "2024-08-01T23:40:14Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasmedina](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jasmedina](https://developer.sailpoint.com/discuss/u/jasmedina)\
**Post date:** [August 1, 2024, 11:40pm UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/1 "2024-08-01T23:40:14Z")

</div>

Hi All,

I noticed that some attributes that I included in the body does not get updated (only the first attribute gets updated to false) but when I tried to do the same call and body in Postman, everything works fine.

HTTP Operation body:  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/7/75ceb5769af01adc3e41b22ac56682abd103de90.png)

Postman:  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/7/734a14385b1e38dc58de00d460f47664e1def744.png)

Has anyone encountered this? If so, how were you able to resolve it?

Thank you!

---

<div class="post-metadata">

**Author:** ![hranjan3](https://avatars.discourse-cdn.com/v4/letter/h/ecb155/32.png) [@hranjan3](https://developer.sailpoint.com/discuss/u/hranjan3)\
**Post date:** [August 2, 2024, 2:37am UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/2 "2024-08-02T02:37:14Z")

</div>

I think its an issue with attribute mapping and nesting issue.

---

<div class="post-metadata">

**Author:** ![jasmedina](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jasmedina](https://developer.sailpoint.com/discuss/u/jasmedina)\
**Post date:** [August 2, 2024, 3:16am UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/3 "2024-08-02T03:16:18Z")

</div>

p\_deactivated and p\_corporate\_user\_status has the same level of path notation as p\_activate so I think mapping is not the issue since p\_activate is working and I just pattern the attribute mapping of that attribute with the other two

---

<div class="post-metadata">

**Author:** ![shekhardas1825](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/shekhardas1825/32/20889_2.png) [@shekhardas1825](https://developer.sailpoint.com/discuss/u/shekhardas1825)\
**Post date:** [August 2, 2024, 3:41am UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/4 "2024-08-02T03:41:09Z")

</div>

@jasmedina Make sure values you are passing are correct, is your p\_deactivated attribute expecting a Boolean (what is the target value look like?)

If any of the value in the request body which does not come correct rest of the attribute tends to skip the update (that’s the behavior i observed in past).

Can you share a sample JSON of the user details? Just to check how these attributes are updated.

Regards,  
Shekhar Das

---

<div class="post-metadata">

**Author:** ![jasmedina](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jasmedina](https://developer.sailpoint.com/discuss/u/jasmedina)\
**Post date:** [August 2, 2024, 3:58am UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/5 "2024-08-02T03:58:34Z")

</div>

Here’s the sample JSON of the user details.

```auto
{
    "success": true,
    "data": {
        "_id": "xxx",
        "id": "xxx,
        "app_id": "xxx",
        "atom_dictionary_id": "558b2ee4e9f5fab8c0000002",
        "atom_number": xxxx,
        "status": "Pending",
        "current_step": {
            "id": "xxxx",
            "name": "Phase 1",
            "order": 1,
            "description": "",
            "auto_advance": true,
            "auto_advance_with_one_approval": false,
            "reset_on_rewind": true,
            "deactivate_on_rewind": false,
            "deactivate_on_forward": false,
            "hide_from_picker": false,
            "label": null,
            "created_at": "2015-06-24T22:27:48.712Z",
            "updated_at": "2020-04-02T18:48:56.048Z",
            "deleted_at": null,
            "mongo_id": null,
            "app_id": "xxxx"
        },
        "p_bson_id": "xxxx",
        "name": "test@sample.com",
        "p_activate": false,
        "requester_name": "John Smith",
        "requester_email": "jsmith@consulting.com",
        "p_user_name": "John Smith",
        "p_one_legal_team_name": "Administration",
        "p_region": "Americas",
        "p_country": "United States",
        "p_default_suite_name": "Onit",
        "p_default_navigation_item": "Matter Management Home",
        "p_suite_navigation_items": "{\"Onit\":{\"nav-items\": [\"Matter Management Home\",\"Split3\",\"Matters\",\"Budgets\",\"Tasks\",\"Contacts\",\"Invoices\",\"Split1\",\"Reports Split\",\"Tableau - Matter Suite Template\",\"Tableau - Spend Suite Template\",\"Split2\",\"How-To Documentation\",\"Split4\",\"Logout\"], \"action-items\":[\"Add Matter\",\"Add Matter Status\",\"Matters - Add Accrual Process\",\"Add Contact\",\"Add Task\"]}}",
        "p_group_name": "Standard Users",
        "p_view_admin_workday_info": "No",
        "p_tableau_report_user": "No",
        "p_paralegal": "",
        "p_enable_out_of_office": false,
        "p_out_of_office_selector": "",
        "p_new_ui": true,
        "p_last_login_date": "2022-09-14T00:00:00Z",
        "p_corporate_user_status": "Inactive",
        "p_deactivated": "Yes"
    }
}
```

---

<div class="post-metadata">

**Author:** ![shekhardas1825](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/shekhardas1825/32/20889_2.png) [@shekhardas1825](https://developer.sailpoint.com/discuss/u/shekhardas1825)\
**Post date:** [August 2, 2024, 4:09am UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/6 "2024-08-02T04:09:24Z")

</div>

@jasmedina based on the user response I can say you are sending correct values.

Also assuming you are sending the request body based on your target API documentation.

Query: are you using patch call to update user object or there is a specific API provided for the disable account?

Regards,  
Shekhar Das

---

<div class="post-metadata">

**Author:** ![jasmedina](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jasmedina](https://developer.sailpoint.com/discuss/u/jasmedina)\
**Post date:** [August 2, 2024, 4:12am UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/7 "2024-08-02T04:12:39Z")

</div>

Hi Shekhar,

I am using PUT call to update those attributes because there is no specific API endpoint for disabling the accounts. This is based on the API documentation of the application.

---

<div class="post-metadata">

**Author:** ![shekhardas1825](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/shekhardas1825/32/20889_2.png) [@shekhardas1825](https://developer.sailpoint.com/discuss/u/shekhardas1825)\
**Post date:** [August 2, 2024, 4:15am UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/8 "2024-08-02T04:15:37Z")

</div>

Ok got it.

I would try with below looking at user response

```auto
{
    "data": {
        "p_activate": false,
        "p_corporate_user_status": "Inactive",
        "p_deactivated": "Yes"
    }
}

```

Not sure about the API documentation just assuming.

Regards,  
Shekhar Das

---

<div class="post-metadata">

**Author:** ![jasmedina](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jasmedina](https://developer.sailpoint.com/discuss/u/jasmedina)\
**Post date:** [August 2, 2024, 4:24am UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/9 "2024-08-02T04:24:13Z")

</div>

Tried this one and it is still only the p\_activate attribute gets updated. Thank you still for giving your insight 🙂

---

<div class="post-metadata">

**Author:** ![shekhardas1825](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/shekhardas1825/32/20889_2.png) [@shekhardas1825](https://developer.sailpoint.com/discuss/u/shekhardas1825)\
**Post date:** [August 2, 2024, 4:37am UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/10 "2024-08-02T04:37:29Z")

</div>

To troubleshoot the issue you can deploy a sample beforeOperation and afterOperation rule to check if the connector is getting the correct request body and processing it at the same time.

**BeforeOperation rule just print following:**  
requestEndPoint

**AfterOperation rule print following**  
requestEndPoint  
rawResponseObject  
processedResponseObject

totally up to you till you wait for other experts response on this.

Regards,  
Shekhar Das

---

<div class="post-metadata">

**Author:** ![gogubapu](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gogubapu/32/15242_2.png) [@gogubapu](https://developer.sailpoint.com/discuss/u/gogubapu)\
**Post date:** [August 2, 2024, 7:11am UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/11 "2024-08-02T07:11:11Z")

</div>

Hi @jasmedina,

You may add headers Content-Type:application/json, then try again.

Thank You.

---

<div class="post-metadata">

**Author:** ![jasmedina](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jasmedina](https://developer.sailpoint.com/discuss/u/jasmedina)\
**Post date:** [August 2, 2024, 7:29am UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/12 "2024-08-02T07:29:42Z")

</div>

Tried this but didnt work ☹

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [October 1, 2024, 7:29am UTC](https://developer.sailpoint.com/discuss/t/http-operation-disable-body/75183/13 "2024-10-01T07:29:58Z")

</div>

Closed on October 1, 2024, 7:29am UTC

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