Home > Default > Group Search- How?

Group Search- How?

November 30Hits:0
Advertisement
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

Answers

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....

Read other 3 answers

Tags:

Related Articles

  • Glassfish LDAP group search results in ExceptionNovember 30

    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.real

  • Group Search- How?November 30

    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 resu

  • Item Category Group searchNovember 30

    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 kn

  • Sales group search option in CRMT_BSP_OPP_SEARCHNovember 30

    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 NaveenHI Naveen, Please mention the field name, field group name and the application where you want to place this. Reg

  • Group Search - Record Set Limitations???November 30

    Is there a known bug with Policy Server for Group searches when assigning a group to a Policy? There appears to be max return result set limit of 30 in the search? I'm positive one of the OU's I'm configuring has over 30 group object entries. Is ther

  • Vendor Account Group Search HelpOctober 11

    Hello MM Experts, We would like to search Vendors by Account Group. Surprisingly it appears that SAP has not provided a standard Search Help for this. I would think that a lot of SAP users would want this. Does anyone know why SAP has not provided th

  • Using Underscore In OIDDAS Group Search Text BoxOctober 11

    Hi Everyone, I am using the 'Directory' tab within the Oracle Self Service Console to search for user Groups. Most of my groups are of the form : PORT_xx_xxxx I am trying to search for all groups beginning PORT_ but if I enter that as a search query

  • Material group search listNovember 30

    Hi Expert, I have a very simple problem but i cannot find the solution. When we go to MM03, we are able to search material code by material description for eg: place your cursor on the material code field, press F4 and enter " jett ", list of de

  • Grouping Search Results by Parent FolderNovember 30

    Hello, I am sure someone has come across this before. I would like to display search results grouped by Parent Folder. So all documents in FolderA would be grouped together and all documents in FolderB would be until a FolderB heading..Hi Craig, >>

  • Account group SearchNovember 30

    Hi, I have a problem here. I am using Account_group field to use as a search field in Accounts application. I only get results for Rh SOld to party, watever be the choice for the account_group. Please let me know if u have any idea. ThanksIf you look

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 1.159 s.