Venu1010
(Venugopala Hs)
August 14, 2024, 5:04am
1
Hi All,
I have a requirement to filter out “inactive” && whose “managerStatus” equals ‘true’ from the dropdown in a form.
Could you please help me to filter here. I have tried below filterString to filter. But no luck. Please advise.
"filterString=“inactive==false”
Query = (managerStatus == true && inactive == false && identityStatus == “Active”)
Below is the Field.
<Field displayName="Digital Workers ID Owner" filterString="workgroup==false" name="managerID" postBack="true" required="true" type="sailpoint.object.Identity"/>
Regards,
Venu
AroraA3
(Amardeep Singh Arora)
August 14, 2024, 5:15am
3
Hi Venugopala,
Are you referring the ‘inactive’ attribute of iiq? if yes, do you want to filter the users that are inactive? and are managers?
Also you mentioned below is the field but looks like you missed to put it. Can you please share the field snippet?
Venu1010
(Venugopala Hs)
August 14, 2024, 5:28am
4
Yes correct ‘inactive’ attribute in IIQ. I want to filter “inactive” users and whose “managerStatus” state is false. i.e I need only “Active” managers in the dropdown.
Just like filterString=“workgroup==false” in snapshot.
Please find the Field attached. Thank you in advance.
Venu1010
(Venugopala Hs)
August 14, 2024, 5:30am
5
One more for your reference.
keep this code in you allowed value definition of your form
`import sailpoint.object.Identity;
import sailpoint.object.QueryOptions;
import sailpoint.object.Filter;
import sailpoint.tools.GeneralException;
import java.util.Iterator;
List activeManagerList = new ArrayList();
QueryOptions qo = new QueryOptions();
qo.addFilter(Filter.eq("workgroup", false));
qo.addFilter(Filter.eq("managerStatus", true));
qo.addFilter(Filter.eq("inactive", false));
Iterator itr = context.search(Identity.class,qo);
while((null != itr) && (itr.hasNext())){
Identity id = (Identity) itr.next();
activeManagerList.add(id);
}
sailpoint.tools.Util.flushIterator(itr);
return activeManagerList;`
1 Like
Hi @Venu1010 ,
You can use the below filterString which will filter only active manager.
filterString=“managerStatus == true && inactive == false”
Regards,
Arun
1 Like
Venu1010
(Venugopala Hs)
August 14, 2024, 12:11pm
8
tried to add filterString=“workgroup==false && inactive == false” but not working.
Arun-Kumar
(Arun Kumar)
August 14, 2024, 12:17pm
9
Hi @Venu1010 ,
Did you try with below filterString?
I hope, your requirement is to display only the active manager. correct me, if i am wrong.
Regards,
Arun
Arun-Kumar
(Arun Kumar)
August 14, 2024, 2:08pm
11
Try with below filterString and let me know the result.
Regards,
Arun
@Venu1010 Pls try to use identitySelector so you can use same filter at other places also.
system
(system)
Closed
October 13, 2024, 2:14pm
13
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.