How can we do account/Group aggregation using a custom rule

Which IIQ version are you inquiring about?

[IIQ8.3]

Share all details about your problem, including any error messages you may have received.

[I want to aggregate the accounts in IIQ without using account aggregation task,by implementing a custom rule so how can we achieve this in IIQ? ]

Any reason behind that to aggregate users without account aggregation ?

There is a requirement like that so I am trying.

Is this for complete aggregation or single object?

Complete aggregation.

Through custom rule focus on to pull all users and then you can call account aggregation API.

1 Like

Hi @Shalaka_Gawande,

You can use below snippet to reconcile data and with the below snippet you will get ResourceObject. Let me know if you need further help.

ConnectorFactory cf=new ConnectorFactory();
    Application app=context.getObjectByName(Application.class,"appName");



    Connector conn=ConnectorFactory.getConnector(app, null);

    CloseableIterator iterator=conn.iterateObjects("account", null, null);
    while(iterator.hasNext())
    {

      ResourceObject object=iterator.next();
      System.out.println("object ::"+object.toXml());
    }

Thanks

Thanks! @ashutosh08.
I will try.

If its for all users you can launch the aggregation task from your rule. This will be easier to handle