# Update one Identity attribute via API

**URL:** <https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674>\
**Category:** IIQ Discussion and Questions\
**Tags:** apis, identityiq\
**Created:** [October 23, 2023, 8:52pm UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674 "2023-10-23T20:52:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vic\_rinkenberger](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vic_rinkenberger/32/37305_2.png) [@vic\_rinkenberger](https://developer.sailpoint.com/discuss/u/vic_rinkenberger)\
**Post date:** [October 23, 2023, 8:52pm UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674/1 "2023-10-23T20:52:54Z")

</div>

I am trying to update one Identity attribute via the IIQ API. I’m using this endpoint:

`{{baseUrl}}/Users/:userId?attributes=&excludedAttributes=*&lookupByName=true`

And I’m using this body:

```auto
{
  "userName": "User.Name",
  "urn:ietf:params:scim:schemas:sailpoint:1.0:User": {
    "attributeName": "Test"
  }
}

```

The Identity attribute is updated as expected, but all of the other Identity attributes on the Identity are completely wiped out.

What am I missing?

Thanks,  
Vic

---

<div class="post-metadata">

**Author:** ![venus](https://avatars.discourse-cdn.com/v4/letter/v/35a633/32.png) [@venus](https://developer.sailpoint.com/discuss/u/venus)\
**Post date:** [October 23, 2023, 10:01pm UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674/2 "2023-10-23T22:01:56Z")

</div>

> [@vic\_rinkenberger](#):
>
> The Identity attribute is updated as expected, but all of the other Identity attributes on the Identity are completely wiped out.

Wondering if the end point is expecting all the existing attributes, along with the new changes.

---

<div class="post-metadata">

**Author:** ![dheerajk27](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/dheerajk27/32/3514_2.png) [@dheerajk27](https://developer.sailpoint.com/discuss/u/dheerajk27)\
**Post date:** [October 24, 2023, 3:04am UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674/3 "2023-10-24T03:04:52Z")

</div>

Hi @vic_rinkenberger ,

Are you trying to modify identity attribute in target application as based on behaviour your target application api is expecting every attribute value along with changes attribute value.

Please check with application team and modify you api request envelop before sending the request using before rule.

---

<div class="post-metadata">

**Author:** ![vic\_rinkenberger](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vic_rinkenberger/32/37305_2.png) [@vic\_rinkenberger](https://developer.sailpoint.com/discuss/u/vic_rinkenberger)\
**Post date:** [October 24, 2023, 3:22pm UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674/4 "2023-10-24T15:22:33Z")

</div>

I’m just trying to modify one Identity attribute directly on the Identity. It seems like it is expecting that I also supply ALL OTHER Identity attributes, or else it will wipe them out.

Vic

---

<div class="post-metadata">

**Author:** ![KRM7](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/krm7/32/2685_2.png) [@KRM7](https://developer.sailpoint.com/discuss/u/KRM7)\
**Post date:** [October 24, 2023, 8:47pm UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674/5 "2023-10-24T20:47:34Z")

</div>

Hi @vic_rinkenberger

The operation is PUT, not PATCH operation.

I have replicate your use case. I just updated display name and it is updated but it wiped out first name, last name and email attributes. However manager attribute is not wiped out.

---

<div class="post-metadata">

**Author:** ![Remold](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/remold/32/3275_2.png) [@Remold](https://developer.sailpoint.com/discuss/u/Remold)\
**Post date:** [October 24, 2023, 9:17pm UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674/6 "2023-10-24T21:17:21Z")

</div>

It looks like you need to do a GET first to get all the attributes and than perform the PUT with all attributes including the ones not changed and excluding the read-only attributes.

There is not a lot of documentation on the [IIQ SCIM API](https://community.sailpoint.com/t5/Other-Documents/IdentityIQ-8-1-SCIM-API-Documentation/ta-p/177751#updateUser) ☹

– Remold

---

<div class="post-metadata">

**Author:** ![vic\_rinkenberger](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vic_rinkenberger/32/37305_2.png) [@vic\_rinkenberger](https://developer.sailpoint.com/discuss/u/vic_rinkenberger)\
**Post date:** [October 24, 2023, 9:20pm UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674/7 "2023-10-24T21:20:49Z")

</div>

Ah, that makes sense. So, is there no way to simply update one Identity attribute from the API?

Thanks,

Vic

---

<div class="post-metadata">

**Author:** ![KRM7](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/krm7/32/2685_2.png) [@KRM7](https://developer.sailpoint.com/discuss/u/KRM7)\
**Post date:** [October 25, 2023, 7:58am UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674/8 "2023-10-25T07:58:57Z")

</div>

Yes, it seems to be. We don’t have much documentation on IIQ API.

---

<div class="post-metadata">

**Author:** ![Remold](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/remold/32/3275_2.png) [@Remold](https://developer.sailpoint.com/discuss/u/Remold)\
**Post date:** [October 25, 2023, 8:25am UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674/9 "2023-10-25T08:25:16Z")

</div>

There might be a way to create a new Workflow (to update a particular attribute) and call that custom Workflow via the API.  
But I would only go that route if it is focussed on 1 particular attribute/use-case on a regular basis (Like enable/disable based on an external event or alike).

– Remold

---

<div class="post-metadata">

**Author:** ![vic\_rinkenberger](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vic_rinkenberger/32/37305_2.png) [@vic\_rinkenberger](https://developer.sailpoint.com/discuss/u/vic_rinkenberger)\
**Post date:** [October 25, 2023, 2:06pm UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674/10 "2023-10-25T14:06:49Z")

</div>

OK, thanks for everyone’s responses!

---

<div class="post-metadata">

**Author:** ![KRM7](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/krm7/32/2685_2.png) [@KRM7](https://developer.sailpoint.com/discuss/u/KRM7)\
**Post date:** [October 25, 2023, 2:20pm UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674/11 "2023-10-25T14:20:38Z")

</div>

If it is not something custom solution, I would suggest you to use batch requests to update identity data for bulk users. In my experience, we didn’t use any API in IIQ, we used OOTB solutions and custom solutions inside IIQ.

---

<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:** [December 24, 2023, 2:21pm UTC](https://developer.sailpoint.com/discuss/t/update-one-identity-attribute-via-api/19674/12 "2023-12-24T14:21:15Z")

</div>

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