Creating a Role/Bundle Filter

Which IIQ version are you inquiring about?

Version 8.3

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

I’m attempting to create a filter so that only certain roles show up for end users. Role that have specific attributes for assignment are also showing up in the access catalog. I want to be able to restrict visibility of roles to certain ones. I have received the following error on my rule when it is assigned in the Quicklink population. “sailpoint.tools.GeneralException: could not resolve property: bundles of: sailpoint.object.Bundle”

Here are couple of examples of the rule I have tried to build:

Attempt 1:

  <Source>

  import sailpoint.object.Filter;
  import sailpoint.object.Identity;
  import sailpoint.object.QueryOptions;
  import sailpoint.object.QueryInfo; 

  Filter entFilt1 = Filter.and(Filter.eq("bundle.name", "Add Email Exception"));

  Filter entFilt2 = Filter.and(Filter.eq("bundle.name", "New Network @and Email Access - Non Vendor"));

  Filter entFilt3 = Filter.and(Filter.eq("bundle.name", "New Network Access - Vendor"));

 Filter orFilter = Filter.or(entFilt1,Filter.or(entFilt2,entFilt3));

  QueryInfo finalQueryInfo = new QueryInfo(orFilter, false);
  return finalQueryInfo;

  </Source>

Attempt 2:

<Source>

  import sailpoint.object.Filter;
  import sailpoint.object.Identity;
  import sailpoint.object.QueryOptions;
  import sailpoint.object.QueryInfo; 
  import sailpoint.object.Bundle;

  Filter entFilt1 = Filter.collectionCondition("bundles", Filter.and(Filter.eq("name", "Add Email Exception")));

  Filter entFilt2 = Filter.collectionCondition("bundles", Filter.and(Filter.eq("name", "New Network @and Email Access - Non Vendor")));

  Filter entFilt3 = Filter.collectionCondition("bundles", Filter.and(Filter.eq("name", "New Network Access - Vendor")));

 Filter orFilter = Filter.or(entFilt1,Filter.or(entFilt2,entFilt3));

  QueryInfo finalQueryInfo = new QueryInfo(orFilter, false);
  return finalQueryInfo;

  </Source>

Your filter property should just be name. Remove the bundle.

1 Like

Thank You @patrickboston, that worked.

2 Likes

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