Group Search- How?

Hello Gurus,
Our UME is tied to Active Directory with read-only option. I am presently trying to clean up groups which involves identifying groups stored in Portal Database (not in AD) and then possibly deleting them.
If I search for groups, the results show groups from both the Portal Database and AD. How can I get a list of groups stored only in the Portal Database?
Any pointers are appreciated.
Thanks,
Kiran

With EP7, it's easy - the user admin tool allows you to select this.
EP6 is a bit messier. You need to use the role assignment tool in the portal and select your group there. Now when you use the Edit button, you get the full name of the group, which will show if it's LDAP or not.
Or, you could write some code which does a group search and returns the unique name. This is similar, but was designed for users, not groups...
Cheers
package com.sap.anz;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import com.sap.security.api.ISearchAttribute;
import com.sap.security.api.ISearchResult;
import com.sap.security.api.IUser;
import com.sap.security.api.IUserFactory;
import com.sap.security.api.IUserSearchFilter;
import com.sap.security.api.UMException;
import com.sap.security.api.UMFactory;
import com.sapportals.htmlb.Form;
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
import com.sapportals.portal.prt.component.IPortalComponentResponse;
public class UserListing extends PageProcessorComponent {
  public DynPage getPage() {
    return new UserListingDynPage();
  public static class UserListingDynPage extends DynPage {
     * Initialization code executed once per user.
    public void doInitialization() {
     * Input handling code. In general called the first time with the second page request from the user.
    public void doProcessAfterInput() throws PageException {
     * Create output. Called once per request.
    public void doProcessBeforeOutput() throws PageException {
          IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
          IPortalComponentResponse response = (IPortalComponentResponse) this.getResponse();
      Form myForm = this.getForm(); // get the form from DynPage
       IUserFactory userFact = UMFactory.getUserFactory();
       try {
            IUserSearchFilter groupFilt = userFact.getUserSearchFilter();
            groupFilt.setSearchAttribute(
                 "com.sap.security.core.usermanagement",
                 "uniquename",
                 ISearchAttribute.LIKE_OPERATOR,
                 false);
            ISearchResult result = userFact.searchUsers(groupFilt);
            List list = new LinkedList();
//            Iterator currentMembers = null;
            while (result.hasNext()) {
                 String name = (String) result.next();
                    list.add(name);
          Collections.sort(list);
          Iterator iter = list.iterator();
          response.write("<table border = "1">");
                 while (iter.hasNext()) {
                    IUser testUser = userFact.getUser(iter.next().toString());
                    String dispUser = testUser.getUniqueName();
                    response.write("<tr><td>"+dispUser+"</td><td>"+testUser.getUniqueID()+"</td></tr>");
          response.write("</table>");
     } catch (UMException e) {
          response.write("<br>Searching failed - " + e.getLocalizedMessage());
      // create your GUI here....

Similar Messages

  • Item Category Group search

    Hi Gurus,
    I have requirement for Item Category Group search for products, I searched most of the components, but I dint find the
    the Item Category group search.
    Please help me if you know any component I can use.
    If there are not component, let me know, how to do it.
    Thanks,
    Sushant

    Hi
    Chk ths link out :
    http://wiki.sdn.sap.com/wiki/display/CRM/Howtoaddanexistingfieldtoasearchpageofadifferent+component
    Rgds,
    Swati

  • Sales group search option in CRMT_BSP_OPP_SEARCH

    Hi,
    We need the sales group search option for Opportunity Search but there is no facility for it  how can i put this filter.
    Thanks
    Naveen

    HI Naveen,
    Please mention the field name, field group name and the application where you want to place this.
    Regards,
    Hemanth

  • My emails from the same person are grouped together, how do I undo this so that each email stands on it's own?

    1.My emails from the same person are grouped together, how do I undo this so that each email stands on it's own?
    2.Currently my emails are grouped together if the subject is the same, how do I undo this?
    3.My emails are "folded up", with tabs like "See more" - how do I undo this? - I want to see the full email at once without having to click multiple times in the email on "show more" etc.
    4.When I send an email to some one, a copy of that email is sometimes sent to me?? - this confuses my and make me think I by accident sent it to myself, but when I check it in the SENT box, it the correct recipient's name was used. How to fix this mystery?
    Please help, I am not good with computers so you will have to keep your answer simplictic or in steps.
    Thanks!

    Click the View menu in the Mail menu bar and uncheck Organize by Conversation.

  • What's 'BOM Group'   ?  How to use it?

    What's 'BOM Group'   ?  How to use it?
    How can i find the reference help file?
    Please give me the solution as detail as possable.

    Hello,
    Please refer the Link:
    1. On BOM: http://help.sap.com/saphelp_47x200/helpdata/en/c6/893b3b449311d1893e0000e8323c4f/frameset.htm
    2. On BOM Group:
    http://help.sap.com/saphelp_47x200/helpdata/en/ea/e9bf694c7211d189520000e829fbbd/frameset.htm
    3. Sales BOM Implementation
    http://www.sap-img.com/sap-sd/sales-bom-implementation.htm
    Regards,
    Hemachandra K S
    <b>Don't forget to to reward points by marking as "Helpful" or "Very Helpful" or "Solved problem".</b>

  • Mac OS 10.4.11, Firefox 3.6.25. My home page has changed from Google Search to Bing Search, how do i get rid of bing and get Google back?

    Mac OS 10.4.11, Firefox 3.6.25. My home page has changed from Google Search to Bing Search, how do i get rid of bing and get Google back?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.com/kb/Preferences+are+not+saved

  • "conduit search" How can I get rid of it for ever...

    conduit search" How can I get rid of it for ever, seems to have hijacked something, Have removed it from search engine options but it keeps reappearing, have (apparently ) uninsulated the programme from control panel but its still lurking there somewhere

    See:
    * http://forums.mozillazine.org/viewtopic.php?f=38&t=641296

  • Glassfish LDAP group search results in Exception

    I'm trying to get my group search running but I keep getting the same exception
    java.lang.NullPointerException
         at com.sun.enterprise.security.auth.realm.ldap.LDAPRealm.groupSearch(LDAPRealm.java:705)
         at com.sun.enterprise.security.auth.realm.ldap.LDAPRealm.findAndBind(LDAPRealm.java:497)
         at com.sun.enterprise.security.auth.login.LDAPLoginModule.authenticate(LDAPLoginModule.java:108)
         at com.sun.enterprise.security.auth.login.PasswordLoginModule.authenticateUser(PasswordLoginModule.java:117)
         at com.sun.appserv.security.AppservPasswordLoginModule.login(AppservPasswordLoginModule.java:148)
    There's only on post on the web with the same problem and there is is not fixed.
    This is the domain.xml
    <auth-realm name="EpsLdapRealm" classname="com.sun.enterprise.security.auth.realm.ldap.LDAPRealm">
    <property name="directory" value="ldap://myldap:389"></property>
    <property name="base-dn" value="ou=Users,o=xxx"></property>
    <property name="jaas-context" value="ldapRealm"></property>
    <property name="search-bind-dn" value="cn=saepsman,ou=Users,ou=e-Directory,ou=Services,o=xxx"></property>
    <property name="search-bind-password" value="xxxxx"></property>
    <property name="search-filter" value="(&amp;(objectClass=user)(uid=%s))"></property>
    <property description="null" name="assign-groups" value="USER"></property>
    <property name="group-search-filter" value="(&amp;(objectClass=groupOfNames)(member=%d))"></property>
    <property name="group-base-dn" value="ou=AccessControl,o=xxx"></property>
    </auth-realm>
    Authentication works fine, but group assignments do not work. When I remove the group-search-filter I get no error but then also no groups are assigned.
    The group I am trying to map is
    cn=cug-EPSManager-Administrators,ou=AccessControl,o=xxx
    And I do the following mapping in glassfish-web.xml
    <security-role-mapping>
              <role-name>ADMIN</role-name>
              <group-name>cug-EPSManager-Administrators</group-name>
         </security-role-mapping>
    I also have used
    -Djava.naming.referral=follow
    EDIT:
    I also get the following log message indicating that the search-bin-dn and password are OK. I can also browse the LDAP tree with the credentials in Softerra LDAP Browser.
    Error during LDAP search with filter [(&(objectClass=groupOfNames)(member=cn=cdamen,ou=Users,o=xxx))].|#]
    When I look at the look at the LDAPRealm source code I see it is failing on the following statement
    int sz = grpAttr.size();
    This looks like to me that it means that some group was found but there are no group attributes. But there are when I query with Softerra, strange...
    * Search for group membership using the given connection.
    private List groupSearch(DirContext ctx, String baseDN,
    String filter, String target)
    List groupList = new ArrayList();
    try {
    String[] targets = new String[1];
    targets[0] = target;
    SearchControls ctls = new SearchControls();
    ctls.setReturningAttributes(targets);
    ctls.setSearchScope(SearchControls.SUBTREE_SCOPE);
    NamingEnumeration e = ctx.search(baseDN,
    filter.replaceAll(Matcher.quoteReplacement("\\"), Matcher.quoteReplacement("\\\\")), ctls);
    while(e.hasMore()) {
    SearchResult res = (SearchResult)e.next();
    Attribute grpAttr = res.getAttributes().get(target);
    int sz = grpAttr.size();
    for (int i=0; i<sz; i++) {
    String s = (String)grpAttr.get(i);
    groupList.add(s);
    } catch (Exception e) {
    _logger.log(Level.WARNING, "ldaprealm.searcherror", filter);
    _logger.log(Level.WARNING, "security.exception", e);
    return groupList;
    Hope anyone knows the solution.
    Coen

    Hi Jeong
    Can you explain exactly what you're tyring to achieve.
    Howard
    http://www.avoka.com

  • Receiving Group Text : How do i see who else is in the distribution list???

    Receiving Group Text : How do i see who else is in the distribution list???
    other phones seem to have this, how can i see this? 
    Post relates to: Pre p100eww (Sprint)

    Use his/her Apple ID for iMessage on your phone...you'll actually receive the messages in real time.

  • After I finish a search, How do I close the search window?

    after I finish a search, how do i close the search window?

    I have same macbook air and i am assuming ou mean when its in fullscreen? well go to the top and the top bar should come down and you should see a blue icon with two little arrows facing towards eachother. Click it and it should minimize then click the little red x. done!
    Hope this helps
    Enchanterblu

  • What is meant by article grouping and site grouping and how to define

    what is meant by article grouping and site grouping and how to define in SAP.

    Hi Charan,
               Article Grouping in its broader sense  means grouping of Articles for ease of maintenance and business functions, either on the basis of Hierarchy or on the basis of Merchandise Category.Article Grouping is also primarily useful in promotions,wherein you can define a set of articles(which may not necessary fall under the same MC or Hierarchy) and club them together and assign them in a promotion.Txn codes used are : VBG1/2/3 - Create/Change/Display Article Group
    For more information refer the link below
    http://help.sap.com/saphelp_47x200/helpdata/en/12/08485c470311d1894a0000e8323352/frameset.htm
    Site Grouping is used for ease of maintenance by grouping the sites.It is also used to maintain the characteristics as well.This can also be used in Allocation Tables,promotion and Listing etc
    Some of the Txn codes -
    WB50 - Site Group,Create Alloc,.table
    Wb56 - Site Group, Alloc.table,Maintain Sites in Class
    WB60 - Site Group,Create Promotions
    WB64 - Site Group,Maintain SItes to Class
    Wb80 - Create Site Group Other
    For more information,refer the link below
    http://help.sap.com/saphelp_47x200/helpdata/en/12/08485c470311d1894a0000e8323352/frameset.htm
    Hope it helps
    Rgds,
    Aram K.
    For more information refer to the link below

  • If i want to delete something from spot light search , how will i do that?

    If i want to delete something from spot light search , how will i do that?

    Ah...that doesn't delete anything from Spotlight search, just determines what Spotlight searches. nothing else.

  • What is account group? how to definf

    what is account group? how to definf

    Dear deva
    You must assign each account to an account group. The account group ensures that only the relevant screens and fields are displayed and ready for input for each of the customer’s different partner functions. For example, the address, communication, and bank data fields are omitted for the account group for one-time accounts.
    You maintain the account groups in Customizing (IMG), or copy the defaulted account groups.
    The account group controls:
    The type of number assignment used for the account number
    A number interval from which the account number is chosen. The system uses the account number to identify the customer.
    Which fields are displayed when you enter or change customer master data and whether or not an entry must be made in these fields (field status)
    Whether the account is a one-time account
    To create a master record, you have to specify an account group. The account group cannot be changed once you have created the master record. Your system administrator, however, can change the above account group specifications.
    For more information about account group specifications, see the Define Account Groups with Screen Layout activity in the Implementation Guide (IMG) for Accounts Receivable and Accounts Payable.
    For instance, if you implement Sales and Distribution (SD) after implementing Financial Accounting (FI), changes to an account group may be necessary if you wish to add fields that were previously hidden in the master record.
    Leaving content frame
    Thanks
    G. Lakshmipathi

  • I'm trying to install CS5 design standard. Which disc do I install first? One says, "CONTENT" the other has no label. When I search how to install it tells me to install disc 1.  I have nothing that says disc 1.

    I'm trying to install CS5 design standard. Which disc do I install first? One says, "CONTENT" the other has no label. When I search how to install it tells me to install disc 1.  I have nothing that says disc 1.

    Hi rinimeluv,
    If the disk isn't working, try the below mentioned link.
    Install Adobe Creative Suite 5 
    If the problem still persists please try to download it from the link mentioned below and follow the above link in case you face any issues installing it.
    Download CS5 products
    Thanks,
    Atul Saini

  • My Apple ID asks for answers to security questions which I never input. I have searched how to reset my security questions and have found that the option below where your answers are to be input to reset questions does not exist on my iPhone 5c

    My Apple ID asks for answers to security questions which I never input. I have searched how to reset my security questions and have found that the option below where your answers are to be input to reset questions does not exist on my iPhone 5c

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (114119)

Maybe you are looking for

  • Java script problem when trying to sign in to Ovi ...

    Hi Folks I am running XP SP3, with IE7.  I have had problems due to installing ie8 then removing it and going back to IE7.  I have had to reset all sorts of bits.  Anyway. I still can't sign in to the music store, or register my PC for comes with mus

  • Display wpc page containing articles created using forms builder

    Hi everybody, I need to create a wpc site with different pages. Each page will need to contain different categories of articles. These articles will be created using the xml forms builder and for each category there is a specific KM folder (the artic

  • Linux browsers on Oracle AS 9.0.4 error

    I have installed Oracle 10g (9.0.4) on Linux AS 3.0 with forms and report services. No errors during installation. My browser, firefox 1.0.4 runs on mandrake linux 10.0 tried to connect web cache port (7778), error message FRM-92050 /form90/l90servle

  • No Component exists with the name /bic/zplant2

    Hi, i am getting the error for this abap code this code is written in Start routine in BW. but it is giving error while running or checking the program.. the same start routine works fine in Production, but it gives error in Quality. r_plant    like

  • Looking for a Power Supply

    Hi! I am looking for a power supply for my sound blaster speakers. The model is SBS 380. The power supply works on a 4.0 volt. Anyone who would have a spare one to sell or to inform me where to buy one would be most appreciated. ( I'm in Canada ) I h