cancel
Showing results for 
Search instead for 
Did you mean: 

IGroupSeachFilter/IUserSearchFilter for specific UME datasource

former_member182374
Active Contributor
0 Kudos

Hi all,

When using the "Identity Management" iview, there is an option to filter groups/users by selecting "All Data Sources"/"LDAP"/"UME Database".

How can I do this kind of filtering by code? (by using IGroupSeachFilter/IUserSearchFilter).

Thanks,

Omri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Omri,

Once I was asked to perform similar task, and I couldn't find a way to set the DataSource in the filter.

This problem relates to the fact that UME doesn't know how many sources you have, until the XML config file is loaded, and (at least to my understanding) becuase of that standard API doesn't include anything related to source of data.

The only way to try to find it is through

UMFactory.getUserFactory().getUserSearchFilter().setSearchAttribute(blablabla);

The problem is that we don't know the technical name of the attribute...

What I did back then is looked for appearances of "LDAP" inside the user full unique name for this purpose.

Regards, Ivan.

former_member182374
Active Contributor
0 Kudos

Thanks Ivan.

As far as I can see 'setAttribute' doesn't have attribute for group data source.

I can always filter by name and then do my "own" filter by the unique name of the groups (LDAP group will contain "LDAP" string in the unique name. "UME Database" group will contain "PRIVATE" or something similar), I wanted to avoid this kind of implementation but I guess I have no choice.

However, SAP have this kind of functionality in their iview so I guess it's possible (I will try to decompile their code...).

Omri

Answers (2)

Answers (2)

former_member182374
Active Contributor
0 Kudos

Solved it by using standard IFilter

MartyMcCormick
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Omri-

I am trying to figure out how to search users by datasource and noticed you said you solved it by using IFilter. Would you be willing to paste your sample code as to how you accomplished this?

Thanks in advance.

Marty

Former Member
0 Kudos

Hey Omri,

Tell us all how it ends up, maybe it's a good scenario for a short blog.

Regards, Ivan.