# Skip Identity Creation during aggregation

**URL:** <https://developer.sailpoint.com/discuss/t/skip-identity-creation-during-aggregation/98126>\
**Category:** IIQ Discussion and Questions\
**Tags:** workflows, rules, connectors, aggregation, provisioning, identityiq\
**Created:** [January 21, 2025, 3:18pm UTC](https://developer.sailpoint.com/discuss/t/skip-identity-creation-during-aggregation/98126 "2025-01-21T15:18:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rishavghoshacc](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@rishavghoshacc](https://developer.sailpoint.com/discuss/u/rishavghoshacc)\
**Post date:** [January 21, 2025, 3:18pm UTC](https://developer.sailpoint.com/discuss/t/skip-identity-creation-during-aggregation/98126/1 "2025-01-21T15:18:02Z")

</div>

Hi all,

Is there a way to skip the creation of an identity Cube during aggregation? Something besides Customization rule?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![enistriminsait](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@enistriminsait](https://developer.sailpoint.com/discuss/u/enistriminsait)\
**Post date:** [January 21, 2025, 5:49pm UTC](https://developer.sailpoint.com/discuss/t/skip-identity-creation-during-aggregation/98126/2 "2025-01-21T17:49:17Z")

</div>

Hi @rishavghoshacc,

if return null into the customization rule, the identity will be not created.

---

<div class="post-metadata">

**Author:** ![SivaLankapalli](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sivalankapalli/32/22436_2.png) [@SivaLankapalli](https://developer.sailpoint.com/discuss/u/SivaLankapalli)\
**Post date:** [January 21, 2025, 10:12pm UTC](https://developer.sailpoint.com/discuss/t/skip-identity-creation-during-aggregation/98126/3 "2025-01-21T22:12:29Z")

</div>

@rishavghoshacc ,  
If you are trying to aggregate nonauthoritative sources, you can check the prosperity in the aggregation task “Only create links if they can be correlated to an existing identity.”

If you need an authoritative source, you can return a null resource object for specific conditions or call object.setDelete(true) before returning the resource object.

Thank you  
Siva

---

<div class="post-metadata">

**Author:** ![rishavghoshacc](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@rishavghoshacc](https://developer.sailpoint.com/discuss/u/rishavghoshacc)\
**Post date:** [January 22, 2025, 3:24am UTC](https://developer.sailpoint.com/discuss/t/skip-identity-creation-during-aggregation/98126/4 "2025-01-22T03:24:07Z")

</div>

@SivaLankapalli  
I am getting the below error with the code

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/f/4/f43a6a63069756d4a4862f3aee25c7538ff8215c.png)

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/2/3/233e4c05a4c20269106f13e0cbbc895a2fd97adb.png)

---

<div class="post-metadata">

**Author:** ![logesh\_venki](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/logesh_venki/32/17282_2.png) [@logesh\_venki](https://developer.sailpoint.com/discuss/u/logesh_venki)\
**Post date:** [January 22, 2025, 6:41am UTC](https://developer.sailpoint.com/discuss/t/skip-identity-creation-during-aggregation/98126/5 "2025-01-22T06:41:18Z")

</div>

please try the below code and see

```auto
String fileNumber="FILENUMBER";
String empId = object.getAttribute(fileNumber);
  if (Util.isNotNullOrEmpty(empId)){
    if (empId.equalsIgnoreCase("xxxxxx")){
      return null;
    }
  }
  
return object;

```

---

<div class="post-metadata">

**Author:** ![SivaLankapalli](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sivalankapalli/32/22436_2.png) [@SivaLankapalli](https://developer.sailpoint.com/discuss/u/SivaLankapalli)\
**Post date:** [January 22, 2025, 3:10pm UTC](https://developer.sailpoint.com/discuss/t/skip-identity-creation-during-aggregation/98126/6 "2025-01-22T15:10:58Z")

</div>

Hi @rishavghoshacc, please make sure you have the following signature in the customization rule

 ![custom](https://global.discourse-cdn.com/sailpoint/original/3X/4/b/4b03e449146f599d0cc6dec94c5e5a2ed5b7f05e.png)

and can use String workerId = object.getStringAttribute(“FILENUMBER”);

try to return null directly instead of assigning an object to null.

I hope you have been using the Account Aggregation Task.

Thank you.

---

<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:** [March 23, 2025, 3:11pm UTC](https://developer.sailpoint.com/discuss/t/skip-identity-creation-during-aggregation/98126/7 "2025-03-23T15:11:45Z")

</div>

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