Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BO User Groups based on Extended LDAP User Attributes

Hello Experts 

I have configured LDAP with Business Objects. As a part of configuration I also imported additional/extended user attributes ( Country). Using SAP Note - 1880091.

I need to know how I can create Business Objects Users group based on extended attributes ( for example Country).

So i would have all country specific users in one group in business Objects.

Please help.

Thanks

R

Former Member
Former Member replied

1.Create Custom User Attributes

2.

String query ="SELECT SI_ID,SI_EMAIL_ADDRESS,SI_CUSTOM_MAPPED_ATTRIBUTES  from CI_SYSTEMOBJECTS WHERE SI_PROGID='CrystalEnterprise.USER' and not SI_NAME in('Test','Administrator','SMAdmin','Guest','QaaWSServletPrincipal') ";

BOQueryResults = boInfoStore.query(query) ;

IUser myUser = (IUser) BOQueryResults.get(i);

String SAP_EMAIL = "";

try {

  IProperties prop1 = myUser.properties();

  IProperties prop2 = (IProperties)prop1.getProperties("SI_CUSTOM_MAPPED_ATTRIBUTES");

    }catch(java.lang.NullPointerException e){}

try {

  SAP_EMAIL = (prop2.getString("SI_SAP_EMAIL")).toUpperCase();

  if(SAP_EMAIL == null) SAP_EMAIL = "";

    }catch(java.lang.NullPointerException e){SAP_EMAIL = "";}

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question