Searching UME attributes directly in SearchQueryListBuilder

Hello Experts,
I designed a custom Who is who application where the user should have the possibility to enter attributes directly in special edit fields.
To search in the UME index I build up a SearchQuery with this code:
SearchQueryListBuilder queryBuilder = new SearchQueryListBuilder();
queryBuilder.setSearchTerm(queryString);
queryBuilder.setSelectedSearchAction("FUZZY");
IQueryEntryList qel = queryBuilder.buildSearchQueryList();
is it possible to search directly in the UME attributes of the user (e.g. for the lastname)
Is it possible with the set of custom properties? May the code be like this?
queryBuilder.setSelectedCustomProps("attribute_name")
How should the attribute name should be structured so it works for e.g. the lastname?
What I also tried is to build up the connection to the attribute in the query string:
e.g. querystring = "lastname : querystring"
but this variant doesn't work if you enter a lastname like Sm*th for Smith
Please help me.
Thank you
Best Regards
Frank

The correct syntax is:
queryBuilder.setSelectedCustomProps(ume:lastname(value=Smith))

Similar Messages

  • Custom UME attribute with pre-defined values

    All,
    Is it possible to define a custom UME attribute which will have pre-defined values so that it appears as dropdown select when the admin creates a user?
    Your help is appreciated.
    Thanks

    Hi Aakash,
    I am not a software developer so I cannot really give you details. I can point you to our documentation: [SAP NetWeaver Developer's Guide|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/8b/0b674240449c60e10000000a1550b0/frameset.htm]
    This guide should point you in the right direction. The UME has a public API with which you access the attributes in question programmatically. What you do from there depends what you as a programmer want to do.
    -Michael

  • Can we make LOV search window attribute should n't case senstive

    Hi,
    I need to make LOV search window attributes not case senstive is it possible, because on search criteria we can make but how can we do this in LOV?

    Hi Thack
    Your comments are welcome.
    Besides posting your comments here, you also need to post it in the official feedback thread. These poasts really are sent directly to the beta team and they really do read them. The more feedback they get on specific changes, the more likely those changes are to be implemented.
    Go to the following thread. Click the Reply Button on the first post and write your comments.
    Have Comments about Windows 7 RC?
    All of the posts in that thread are collected, periodically and sent directly to the Beta Team.
    Hope this helps.
    Thank You for testing Windows 7
    Ronnie Vernon MVP

  • SPML Provisioning with custom UME attributes

    Hi,
      we are trying to provision users to the SAP Web Application Payer Direct (Part of Biller Direct in FSCM) from IDM. Payer Direct is deployed on an SAP Java Engine. Therefore the natural choice to provision using IDM is the SPML connector provided out of the box. Payer Direct has different ways of setting up user management, one of them being a variant referred to as UME Usermanagement which in a nutshell accesses the backend system using a reference user + vendor number. Both reference user and Vendor number are maintained using additional attributes on the UME. So basically many users are maintained in the webapplication whereas only few user are maintained in the backend system. The setup  is described here:
    http://help.sap.com/saphelp_afs64/helpdata/en/42/c87e28c84e136ee10000000a1553f7/frameset.htm
    Now here are my questions:
    1) We know the the UME API supports this configuration as we have developed a J2EE app creating users in the UME populating these fields using the UME API in a similar context. The question is, does the SPML interface support this as well ?
    2) The structure of the SPML request is defined by a file called "schema.xml". Can this be customised and what is its location ?
    3) If the file can be customised  we could add the additional fields to the schema definition by modifying schema.xml. The question though is how would e.g. the SPML create operation recognise the additional fields and "know" what to do with them, i.e. populate the native UME API (which I presume it does) ?
    Any bright ideas ?
    Andy

    Thans for your reply, But how do I get the info of sales org. I can get the userid into BSP, from that user, I have to go and read UME Attributes and get the sales org. But I am not sure, how to read these attributes.
    Please let me know if you have any idea on how to read UME Attributes.
    Thanks,

  • Reading UME attributes from Webdynpro ABAP code

    Hi,
    We have a requirement in our project where we need to read the UME attributes for a logged in user in the webdynpro ABAP code. The attribute in question is "SAP Vendor Number" which is maintained as UME attribute for each user.
    Is there any standard FM or BAPI or webservice which we can leverage for this requirement?
    Else, any pointers regarding how to achieve this functionality would be helpful.
    Thanks.

    Hi kartik,
    BAPI_USER_GET_DETAIL Function module to get all the required details of the system user in one go. Here you need to give the SAP Logon Name (USerID) of the person to the function module.
    Or check if this are helpful.
    BBP_PARTNER_GET_DATA
    BAPI_PARTNER_GET_BY_IDNUMBER
    BUPA_PARTNER_GET_BY_IDNUMBER 
    BBP_PDH_GET_PARTNERS_FROM_USER

  • UME Attribute mapping

    Hi,
    via the files dataSourceConfiguration....xml it is possible to map physical user store parameters to UME attributes
    <attributeMapping>
      <principals>
        <principal type="user">
          <nameSpaces>
            <nameSpace name="com.sap.security.core.usermanagement">
              <attributes>
                <attribute name="firstname">
                  <physicalAttribute name="givenname"/>
                </attribute>
                <attribute name="displayname">
                  <physicalAttribute name="displayname"/>
                </attribute>
    Is it also possible to map attributes of the physical user store to "self defined" UME attributes?
    I would like to map the physical attribute persnr (employee number) to a UME attribute "persnr" and request it in my application with IUser.getAttribute("persnr").
    Is this possible?
    Thanks in advance
    Helmut
    Message was edited by: Mary Joan Hebert

    Hello Helmut,
    what kind of problem occurs if the administrator tries the desired form
    <attribute name="persnr"> <physicalAttribute name="persnr"/> </attribute>
    Does he get any error message in some log file? Is it possible to post the relevant datasourceConfig-File?
    Did the administrator add an entry not only into <attributeMapping> but also into:
    <principal type="user">
                             <nameSpaces>
                                  <nameSpace name="com.sap.security.core.usermanagement">
                                       <attributes>
                                            <attribute name="firstname" populateInitially="true"/>
                                            <attribute name="displayname" populateInitially="true"/>
                                            <attribute name="lastname" populateInitially="true"/>
                                            <attribute name="fax"/>
                                            <attribute name="email"/>
                                            <attribute name="title"/>
                                            <attribute name="department"/>
                                            <attribute name="description"/>
                                            <attribute name="mobile"/>
                                            <attribute name="telephone"/>
                                            <attribute name="streetaddress"/>                                        
                                            <attribute name="uniquename" populateInitially="true"/>                                   
    <attribute name="persnr"/>          
                             </attributes>
                                  </nameSpace>
    Have a nice weekend
    AE

  • How to set Max Rows when I search extended attribute in Admin Setting?

    When I search extended attributes in Admin Setting, the default max row is 500.
    Can I change the Max rows' Setting?
    Thanks

    We don't have a feature config for this in the core application, however you can adjust the 500 limit using a ready report.  Ready Reports is a solution pack that allows you to create saved searches in the form of reports.  You can get the ready reports solution pack in the latest extensibility pack.

  • Update AD Attribute directly from OIM

    Hello,
    I just want to change one attibute in AD from a process task in OIM.
    This process task is using an adapter that calls a Java method. In that method i'm initializing a com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks instance and then calling its setUserAttributes(objectGUI,hastable) method. However no changes are reflected in AD..
    I guess i'm not taking the right approach so I'd appreciate ur help.
    Thanks.

    Thank you.
    That's the way to provinsion a field from AD User Form to AD. What I need is to write a Java code to update an attribute directly in AD to the desired value. Some thing like this:
    Pseudocode: UpdateValue(ObjectGUI,pInstance,attribute,newvalue)
    I guess I have to use methods from tcUtilADTasks in com.thortech.xl.integration.ActiveDirectory package, however I've tried several times without success...
    Any suggestion?

  • Reg: Retreiving Custom UME attributes

    How to retrieve custom UME attributes in webdynpro. Should i add any imports or jar files for that.

    Hi,
    add the com.sap.security.api.jar in build path.
    try {
         wdComponentAPI.getMessageManager().reportSuccess("** user attributes***");
         IWDClientUser wdUser = WDClientUser.getCurrentUser();
        IUserFactory fact=UMFactory.getUserFactory();
        IUser user=wdUser.getSAPUser();
        IUserAccount acc=user.getUserAccounts()[0];
       //user attribute
       String[] attNamesapces=user.getAttributeNamespaces();
       for(int i=0;i<attNamesapces.length;i++){
           String attrib[]=user.getAttributeNames(attNamesapces<i>);
           for(int j=0;j<attrib.length;j++){
               String h[]=user.getAttribute(attNamesapces<i>,attrib[j]);
                if(h!=null)
                  for(int k=0;k<h.length;k++)
          wdComponentAPI.getMessageManager().reportSuccess(attNamesapces<i>+"."+attrib[j]
    +"="+h[k]);
    //user account attributes
    wdComponentAPI.getMessageManager().reportSuccess("** user account attributes***");
    attNamesapces=acc.getAttributeNamespaces();
    for(int i=0;i<attNamesapces.length;i++){
       String attrib[]=acc.getAttributeNames(attNamesapces<i>);
       for(int j=0;j<attrib.length;j++){
           String h[]=acc.getAttribute(attNamesapces<i>,attrib[j]);
           if(h!=null)
              for(int k=0;k<h.length;k++)
             wdComponentAPI.getMessageManager().reportSuccess(attNamesapces<i>+"."+attrib[j]+"="+h[k]);
    } catch (Exception e) {}
    Regards,
    Naga

  • Custom UME Attributes

    Dear all,
    I have few queries regarding UME Attributes. Could you please any one help me to resolve the issue?
    We have user managed custom attributes for our portal. Now we would like to populate data for all the users.
    How should i populate data using Import feature? As I know, User Managed custom attributes are visible only for the user
    through PERSONALIZE option. Is there any way to achieve this?
    Thanks!
    Cheers,
    Kabali

    Hi,
    I am not quite sure what you wanna do.
    But in general:
    Every attribute from for example your corporate LDAP Server you can use in your portal.
    In this case you have to modify the xml (data source configuration) file for the UME configuration.
    See http://help.sap.com/saphelp_nw70/helpdata/en/1a/2bee408a63732ae10000000a155106/content.htm.
    After this you have to customize your KM business card if you wanna see this new attribute in the users business card.
    You can as well see within your own profile the new attributes in the portal personalization.
    And of cause you can write your own portal component which can as well access by the common UME API's this new attributes.
    Best regards
    Frank

  • Search on attributes stored in categories

    Using the 9iFS Java/JSP API how is it possible to specify searches on attributes stored in categories (like the "ImageWidth" attribute in the INTERMEDIAIMAGE category).
    I'm currently doing it manually by comparing the attribute values for each document, but it doesn't appear to be efficient.

    Hi Vipul - Have you considered using BCS to connect to Oracle (i.e. set up an external content type) and then indexing the data?
    There are details here:
    http://blogs.msdn.com/b/ericwhite/archive/2010/04/28/searching-external-data-in-sharepoint-2010-using-business-connectivity-services.aspx
    Once you have mapped the BCS fields to managed properties then you can perform a regular field search - e.g. ClientName:Microsoft
    Please remember to mark your question as answered and vote it helpful if this solves or helps with your problem. *******************************************************************************************************

  • Get UME Attributes through front page

    Hello All,
    Is it possible to pull UME attribute of a user like "department" through front page?
    I only know to go to custom attributes and custom attribute mapping and pull it through
    getPropertyValue but can we pull the user details like department set in UME
    Please suggest
    Thanks
    Namita

    Sorry I dont know about Curly braces whether you can do for this , But cud be done for getting roles and User using curly braces or getPropertyValue.
    I Could only suggest you to do as below as far my knowledge ,
    Create XML query.
    Configure above XML Query in Transaction, in links map (XML Query) URL like given below
    "https://Server:Port/XMII/Illuminator?service=admin&Mode=UserAttribList&Content-Type=text/xml&group=XMII Administrators&IllumLoginName=loginId&IllumLoginPassword=pwd"
    Test in Workbench You will get Attributes as Output.
    Pass this to Document and get it in Frontpage using Xacute and Grid.
    Regards,
    Padma.

  • UME attribute mapping for lastpasswordchange to AD

    We are on EP 7.0 and are using Microsoft Active Directory 2003 as our user repository.
    I am using a writeable datasource configuration file to update passwords in AD from portal (SSL configured)
    For users who had password reset done through the portal, portal has the information for "Date of Last Password Change".
    However, for users who do password resets with other mechanisms (outside of SAP portal), portal does not have this information.
    I am trying to map the UME logical attribute "lastpasswordchange" to the corresponding physical attribute on Active Directory - which I believe is "pwdLastSet".
    My XML configuration looks like the following
    <dataSource id="CORP_LDAP"
             <responsibleFor>
                  <principal type="account">
                       <nameSpace name="com.sap.security.core.usermanagement">
                            <attribute name="j_user"/>
                            <attribute name="logonalias"/>
                            <attribute name="j_password"/>
                            <attribute name="userid"/>
                            <attribute name="lastpasswordchange"/>
                       </nameSpace>
                       <nameSpace name="com.sap.security.core.authentication">
                            <attribute name="principal"/>
                            <attribute name="realm"/>
                            <attribute name="domain"/>
                       </nameSpace>
                  </principal>   
                  <principal type="user">
                  </principal>
                  <principal type="group">
                  </principal>
             </responsibleFor>
             <attributeMapping>
                  <principal type="account">
                       <nameSpace name="com.sap.security.core.usermanagement">
                            <attribute name="j_user">
                                 <physicalAttribute name="samaccountname"/>
                            </attribute>
                            <attribute name="logonalias">
                                 <physicalAttribute name="samaccountname"/>
                            </attribute>
                            <attribute name="j_password">
                                 <physicalAttribute name="unicodepwd"/>
                            </attribute>
                            <attribute name="userid">
                                 <physicalAttribute name="*null*"/>
                            </attribute>
                            <attribute name="lastpasswordchange">
                                 <physicalAttribute name="pwdLastSet"/>
                            </attribute>
                       </nameSpace>                  
                    </principal>
                  <principal type="user">
                       <nameSpace name="com.sap.security.core.usermanagement">
                            <attribute name="firstname">
                                 <physicalAttribute name="givenname"/>
                            </attribute>
                  </principal>
             </attributeMapping>
             <privateSection>              
             </privateSection>
        </dataSource>
    However the above configuration doesn't work. I am not able to read the attribute "pwdLastSet" from AD using attribute mapping.
    Can some one please suggest what I am missing ?
    Thank You,

    You may google "pwdLastSet convert" a try to find out some scripts to convert pwdLastSet to another timestamp.
    As I got from some Google's [links|http://anothersysadmin.wordpress.com/2010/10/22/convert-pwdlastset-to-a-human-readable-date/] pwdLastSet it counts time in nanoseconds.
    Consult you MS Active Diractory team for help to create the converting script of create another attribute in AD with the format that match the portal's timestamp. Then you'll map  the new AD attribute to the "lastpasswordchange" attribute of the portal.
    Regards, Mikhail.

  • Trex Search Error : attribute value is not a date or wrong syntax

    Search Failure
    Error during search occurred - com.sapportals.wcm.WcmException: attribute value is not a date or wrong syntax

    Yes, Let me know if you know about it.
    Thanks
    Deepak

  • Reg: Custom UME attributes

    How to add custom UME attributes

    Hi Prashanthi,
    The User Management Engine (UME) provides data source configuration files that define a configuration for standard scenarios. If none of these files cover the scenario that you require, you can modify the existing configuration files according to your requirements.
    1.Download the data source configuration file that most closely meets your requirements.
    For more information about accessing the file when the AS Java is running, see [Accessing Data Source Configuration|http://help.sap.com/saphelp_nw04s/helpdata/en/f3/84fc50c515d44aa008badfbedca14d/content.htm] Files Online.
    For more information about accessing the file when the AS Java is not running, see .[Accessing Data Source Configuration Files Offline|http://help.sap.com/saphelp_nw04s/helpdata/en/0f/bdd93f130f9115e10000000a155106/content.htm]
    2.Adapt the file as required.
    3.Verify the correctness of your data source configuration file using the document type definition (DTD) file, which you can find at the same location as the data source configuration files.
    4. Upload the data source configuration xml file under a different name..
    To configure UME to use it, set the UME property ume.persistence.data_source_configuration to the name of the new configuration file.
    So that it will take the newly created ume config xml file which will have newly added attributes.
    Go thorugh the following links which will give an idea on custom attributes
    Adding custom-attributes to user details
    http://help.sap.com/saphelp_nw04s/helpdata/en/b7/14d43f2dd44821e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/f3/84fc50c515d44aa008badfbedca14d/content.htm
    Adding custom attribute in EP user engine
    Customized Attribute in UME
    Hope this helps you...
    Regards,
    Rudradev Devulapalli
    Reward the points if helpful

Maybe you are looking for

  • Application gives an error ORA-20901:

    hello good day, I'm having problems with one of my application pages i'm getting the following error ORA-20901: Last updated data column "IMAGE_LAST_UPDATE" datatype "VARCHAR2" used to track updates to "INSTRUCTOR_IMAGE" must be a date datatype Error

  • Endnotes in a footnoted document

    Hello, I'm trying to insert a section with endnotes in a longer document which has footnotes. I know you can't have endnotes and footnotes in the same document, but I was hoping that inserting a new section would allow me to do it. The document was w

  • DLSw - Backup Delay

    I have DLSw redundancy configured. My circuits often drop from the primary dlsw peer and connect to the backup. I assume it's missing a certain number of responses back from the primary peer. Is there a way to change the timers and cause the router t

  • Change States in component from main view

    The scenario like this: The main view includes many component views. On my main view there have a radio button to choice different role type, for example: admin and user. For different role have different views. But they don't have big difference. My

  • Photoshop Elements 13.1 crashes immediately

    I have installed Adobe Photoshop 13 and bought a licence. I updated to 13.1. Every time I attempt to import files into Organizer it crashes and then the program closes. I was having trouble importing with original 13 download as well until I started