Accessing UME Custom Attributes

Hi All,
I am trying to access the UME custom attribute for all the users in Webdynpro. There is only one Portal and there is no LDAP.
I used
IUser user = UMFactory.getUserFactory().getUser(uniqeID);
IWDClientUser wdUser1 = WDClientUser.getClientUser(user.getUniqueName());
IUser user1 = wdUser1.getSAPUser();
String attr= user1.getAttribute("<namespace>","<attribute name>");
But this is only giving me the custom attribute for WD logged in users. In WD, I want to get this attribute for other UME users as well.
if I use,
IUser user = UMFactory.getUserFactory().getUser(uniqeID);
String attr= user.getAttribute("<namespace>","<attribute name>");
I get null.
Please reply.
Thanks,
Anil.

(String[]) IWDWebContextAdapter.getRequestParameterValues( String key);
will give you all parameters under the specified key.
nikhiL

Similar Messages

  • UME Custom Attributes

    hi folks,
    i have defined some custom attributes in the UME. i wish to retreive those values at runtime and need to perform some decision based on those attributes....
    is there any method of accessing those properties

    Hi Glenn,
    Quoted from:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/91f0cd90-0201-0010-a190-c4d7cbd5b463
    Once the XML file has been configured and uploaded, the developer has access to any of the attributes configured in the file. You can use the getAttribute() method on the user object to access the special attributes. The method requires two parameters: a Namespace, and the Attribute Name. The namespace is used provide additional flexibility in complex user management configurations. The standard namespace is “com.sap.security.core.usermanagement”. However, you can obtain a list of namespaces associated with the user by calling getAttributeNamespaces() on the user object.
    response.write("<br>Attributes: ");
    String namespaces[] = user.getAttributeNamespaces();
    String ns = null;
    for (int i = 0; i < namespaces.length; i++) {
        if (i > 0)
            ns = namespaces[ i ];
        String attrNames[] = user.getAttributeNames(ns);
        if (ns != null)
            response.write("<br>NS: " + ns);
        for (int j = 0; j < attrNames.length; j++) {
            Object attr[] = user.getAttribute(ns, attrNames[j]);
            response.write("<br>" + attrNames[j] + " = ");
            for (int k = 0; k < attr.length; k++)
                response.write(attr[0].toString() + ", ");
    Hope that helps,
    Yoav.

  • How to Access Custom Attributes created in UME.

    Hi All,
    I have created a custom attribute in UME by using the config tool, the problem that i was facing is i am unable to access those custom attributes via Iuser Api i.e even though i am using the method getAttributeNamespaces() it is returning all the attributes except the custom attributes that i have created in UME.
    Thanks in Advance,
    RV.

    Hi RV,
    Use the user.api jar in your appln.
    follow these steps in your code:
    IWDClientUser wdUser = WDClientUser.getCurrentUser();
    IUser user = wdUser.getSAPUser();
    user.getAttribute("com.sap.security.core.usermanagement", "exact name of the custom attribute");
    if you are still facing the problem paste your code here for analysis.

  • Accessing custom attributes in LDAP using WD Java - UME APIs

    Hello Friends,
    I am trying to access a custom attribute from LDAP in WebDynpro Java. I am using bellow code.
    IWDClientUser clientUser = WDClientUser.getCurrentUser();
    IUser sapUser = clientUser.getSAPUser();
    if (sapUser != null) {
    String[] str_emp = sapUser.getAttribute(<Name Space>,"Attribute Name");
    if (str_emp == null || str_emp.length == 0) {
    wdComponentAPI.getMessageManager().reportSuccess(" NULL ");
    return;
    } else {
    strEmpID = str_emp[0];
    wdComponentAPI.getMessageManager().reportSuccess(strEmpID);
    The name space is "$usermapping$". I am not sure why it is like that only for this attribute i am trying to access.
    I am getting null value if i run this code.
    Can any one help
    thanks
    Shobhan

    Hi,
    Are you sure this is the right namespace? The default namespace is com.sap.security.core.usermanagement.
    You can get all namespaces and the names of all attributes defined for a user using methods getAttributeNamespaces and getAttributeNames : [Interface IPrincipal|http://help.sap.com/javadocs/NW04S/current/se/index.html].
    Regards,
    Pierre

  • How to access custom ume user attributes via VC?

    Hi guys,
    I configured a custom user attribute within the ume configuration:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/de/44/0316d50bbe025ce10000000a1553f7/frameset.htm">Adding Custom Attributes to the User Profile</a>
    Now, how can I access this attribute within my VC model (user data)?
    Thanks for your ideas
    Benny

    Hi,
    Regarding adding properties to user data control, i have the following information. But i am not sure, whether it will be helpful to you.
    You can add a personalise property/User mapping property into a user data control.
    Drag a User data component, go to configure and click the + sign at the bottom of User parameters.
    You can add any personalised properties to the user data (with valid data types and allowed values). Then can use the property in any formula.
    When iView is opened in portal, the personalise property of that particular iView is used to change the property value
    Hope it helps.
    Regards,
    Sooraj

  • How do I access the name of the file stored in a custom attribute?

    I have created a custom attribute based on a file type and am using it in a custom page type. However, the value stored in wwsbr_folder_attributes is a sequential number rather than the name of the jpg file entered into the attribute. How do I access the true filename, as this seems to be what I need in order to reference it in an <IMG SRC=> tag?

    Hi Francis -
    You should be able to use this relatively use this sequential number in an image tag in the following way:
    <img border="0" src="docs/1/211800.GIF" width="470" height="108">
    Hope this helps,
    Candace

  • How to add custom attributes to UME

    hi gurus,
    I have developped an appliation in that I want add custom attributes to UME for the sake of retriving the BrandType.
    Please give me suggestion how to do this.
    Thanks in adance.
    Lohi

    Hi Lohi,
    UME setup
    1)     go to Configuration tool (C:\usr\sap\J2E\JC02\j2ee\configtool\consoleconfig.bat)
    2)     For “Global server configuration->services->com.sap.security.core.ume.service” define property “ume.admin.addattrs” as “BU_PARTNER” and for “ume.admin.self.addattrs” as “<empty>”. (to set value select entry, input value in “Value” field and click “Set”)
    3)     Click “Apply changes” button on the toolbar.
    4)     Restart server.
    5)     Login to http://<server_name>:<server_port>/useradmin/index.jsp and define “BU_PARTNER” property.
    Code:
    try {
         final IWDClientUser wdUser = WDClientUser.getCurrentUser();
         final IUser user = wdUser.getSAPUser();
         final String[] attribute = user.getAttribute(
              "com.sap.security.core.usermanagement",
              "BU_PARTNER");
         if( attribute==null || attribute.length == 0 || !Utils.isNotEmpty(attribute[0]) ) {
              wdComponentAPI.getMessageManager().reportMessage(...);
              return;
         } else {
              buPartner = attribute[0];
    } catch (final WDUMException e) {
         wdComponentAPI.getMessageManager().reportMessage(...);
    Best regards, Maksim Rashchynski.

  • Using AD Custom Attributes in UME

    Hello all,
    I want to get employee number and First/Last name which are maintained in AD as Custom Attributes.
    The question is how to bind UME user attribute to AD Custom Attribute?
    In MMC AD Custom Attributes are shown as "Custom Attribute 1", ... "Custom Attribute N".
    But what technical name should we use to refer it in UME datasource XML configuration?
    <attribute name="EmployeeNumber">
      <physicalAttribute name="?CustomAttribute1?"/>
    </attribute>
    Thanks,
    Anton.

    please check if this help's. We used this for SunOne LDAP, i am assuming it should also work for AD.
    http://help.sap.com/saphelp_nw70/helpdata/en/1a/2bee408a63732ae10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/1a/2bee408a63732ae10000000a155106/frameset.htm

  • Access Custom Attributes in JavaScript and in Transactions

    Hello,
    I try to work with custom attributes. I've problems accessing the values in JavaScript and in transactions, but it works fine within .irpt pages.
    What's the trick?
    For a custom attribute called PLANT, can I write something like this in JavaScript?
    var p = ;
    Is there a way to access custom attributes in the Link Editor of an Action Block?
    Kind Regards,
    Matthias

    Hi Matthias,
    it is not possible to integrate that kind of MII variables in JavaScript like you discribed before.
    You are right that this kind of expression is possible in the .irpt file. The reason why it is working in the .irpt
    but not in the .js is, that the MII script parser is only replacing in HTML content. Everywhere you have
    scripting the parser will not replace the {...} markings (since the curly brackets also show start/end of functions aso.).
    Variables to JavaScript
    The easiest Way to get those variables is to create hidden fields in the .irpt file that you can access via JavaScript.
    For example:
    <input type="hidden" id="hidden_plant" value="{PLANT}" />
    This will be parsed to (e.g.)
    <input type="hidden" id="hidden_plant" value="Karlsruhe/DE" />
    Now you can access this value in JavaScript via:
    document.getElementById( "hidden_plant" ).value;
    Variables to Transactions
    To parse custom variables to a transaction you first have to specify corresponding transaction variables in the
    transaction itself. After saving the transaction you can map those variables to Parameters in the Xacute-Query-Editor.
    Including this transaction to your webpage you can simply assign the required value to the corresponding parameter.
    For example if you mapped the Plant variable of the transaction to Param.1 you can specify the information in the .irpt
    like:
    <applet id="trx_test" ....>
      <... />
      <param name="Param.1" value="{PLANT}" />
    </applet>
    Another possibility is to set the value dynamically via JavaScript if you use:
    document.getElementById( "trx_test" ).getQueryObject().setParam( 1, "Karlsruhe/DE" );
    Native access to user variables via the BLE is not possible (as far as I know).
    I hope this is what you wanted to hear?
    Best Regards
    Sebastian
    Edited by: Sebastian Holzschuh on Jun 10, 2008 12:16 PM

  • Custom Attributes in UME

    Hi,
    I have defined some custom attributes in UME.I created a user creation application which takes parameters from another application. I am using the below code to create the user.
    ===
    IUserMaint newUser = UMFactory.getUserFactory().newUser(uid);
    newUser.setFirstName(preq.getParameter("firstname"));
    ====
    my question is How do I update custom attributes that I have defined in UME.
    Any help on this is greatly appreciated.
    Vasu Pabbaraju.

    Venkata,
    I'm sorry I can't help you with your problem but maybe you can help me with mine....I cant even get the custom attributes to appear. The task processes a BOR but i've tried with UM attributes with no luck. Can you see an error here?
    <ItemType name="uwl.task.webflow.SAP_R3_HumanResources_test" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchSAPAction" executionMode="default">
    <ItemTypeCriteria systemId="SAP_R3_HumanResources" externalType="TS95100025" connector="WebFlowConnector"/>
    <CustomAttributes>
    <CustomAttributeSource id="UM" objectIdHolder="creatorId" objectType="user" cacheValidity="final">
    <Attribute name="lastname" type="string" displayName="Last Name" />
    </CustomAttributeSource>
    </CustomAttributes>
    <Actions>
    <Action name="launchSAPAction" userDecision="no" handler="SAPTransactionLauncher" referenceBundle="launch_sap"/>
    </Actions>
    </ItemType>
    Any help appreciated
    Thanks
    Tahir

  • Customized Attribute in UME

    Hello All,
    My requirement is, how to add the Customized Attribute in UME.
    I got one solution  from SDN. So I have defined custom property in ume.admin.addattrs field.
    But it shows input field. I need a check box instead of input field. How to acheive this?
    Please help to solve my problem.
    Thanks & Regards,
    Art.

    I have a similar requirement.  Any ideas?

  • Limitation on number of custom attributes visible

    Hi,
    I am using OIM 11g.
    All the custom attributes are visible on the create user form. I am able to see only 8 custom attributes on the modify user form.
    The visible property of all the attributes is set to true. I cannot modify the attribute once its created at the user creation.
    Can someone please help me out?
    Thanks...

    I got it resolved.
    Permissions in the access policies were not enabled for the remaining attributes.

  • Error accessing constnt public attribute of a class in an overwrite method.

    Hi Gurus,
    I am facing an error while accessing a constant public attribute while using it in the overwrite-exit of a methods.
    The constant which is declared as public in the attribute section of the class is not available in the overwrite-exit of the method.
    Please suggest me how to access the public attributes in the overwtire exits of the methods.
    Thanks.

    Hi Ramneek,
    Let me explain you the entire scenario:
    Actually we are trying to ehance the SAP standard class : CL_FITV_POWL_FEEDER_TRIPS in ECC 6.0 EHP 5 .
    We tried to create and overwrite-exit of the method "IF_POWL_FEEDER~GET_ACTIONS".
    Overwrite-exit of a method is just like a method which will be called instead of the standard method : IF_POWL_FEEDER~GET_ACTIONS.
    But the problem which we are facing here is that the Attributes which are defined in the class CL_FITV_POWL_FEEDER_TRIPS,  are getting accessed from the overwrite-exit method.
    Becuase of this we are not able to implement our custom logic.

  • MDM Custom attributes

    Hi gurus,
    I'm working with SRM-MDM Catalog 1.0
    I'm facing this problem.
    I have imported some item with custom attributes (MDM Import Manager), i have mapped fields and values.
    In MDM Data Manager items are present but the custom atributes are not present.
    Can you help me please?
    I'll reward points for useful answers.
    Thanks in advance
    Gg

    Hi Gg,
    I guess you haven't imported attributes thats why you are seeing only item hierarchy in data manager and not the attributes.
    Follow these steps:
    1] To import item hierarchy:
         Source Table : Your file with Hierarchy (Partition Field).
         Destination Table : Repository Taxonomy Table.
    2] To Import Attributes:
          Source Table : File with list of custom attributes
           Destination Table : Repository Taxonomy [Attributes]. Thisis a seperate table which we can access through import manager.
    3] To Import Attribute vaues:
          Source Table : File with list of custom attributes and values.
           Destination Table : Repository Taxonomy [Text Values]. Again a seperate table which we can access through import manager.
    4] To link Attibutes with Items:
         Source Table : File with list of custom attributes and items.
           Destination Table : Repository Taxonomy [Link Attribute]. Seperate table which we can access through import manager.
    Once you done with all these steps you should be able to see Item Hierarchy , Linked custom attributes and attribute Values.
    Please let me know if this helps.
    Regards,
    Amol.

  • Custom attributes added to user objects not visible in OWA address book

    Hi,
    I am using Exchange 2013 and recently added a new custom attribute in the user object properties using the details template editor to be visible in the GAL  The new attribute is correctly getting displayed in the GAL from outlook clients but not visible
    in OWA address book. Is there a way to update the display of user objects in OWA address book to include the new custom attribute?
    Thanks!

    Hi Abu,
    Please see following link:
    Customize Details Templates
    http://technet.microsoft.com/en-us/library/ms.exch.toolbox.detailstemplate(v=exchg.150).aspx
    It says, Use the Details Templates Editor to customize the client-side graphical user interface (GUI) presentation of object properties that are accessed by using address lists in Microsoft Outlook.
    My understanding is this setting only visible in Outlook.
    Please correct me if there is any misunderstanding.
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

Maybe you are looking for

  • Error occured in the phase MOVE NAMETABS while updating patch.

    Hi Gurus When i implementing a SP15 to SP16 in a queue, i got the Dump. Please help me in this issue. The import was stopped, since an error occurred during the phase    IMPORT_PROPER, which the Support Package Manager is unable to resolve    without

  • Sound blaster Z with no sound from Optical S/PDIF output

    Hi, I'm trying to record music from a Denon DTR-2000 Digital Audio Tape deck. I have connected a optical S/PDIF cable from Optical Out on the DAT player to the Optical In on the sound card but I'm not hearing any sound. I've also tried with a CD/DVD

  • Problem with standalone resource-adapter

    Hello, I have problem with excluding standalone resource adapters from enterprise applications on OAS 10.1.3.4. Because collection of standalone resource adapters can change dynamically (release of new versions, creation of new environment), I cannot

  • I was charged three times for the same film

    I buy a film and went to see my account i see I was charged three times for the same film, i want to be deleted the other two movies and my money back for that movies that I don't buy.

  • Lightroom Error while changing modules

    Hello! I have a problem with Lighroom. I have tried everything I have found of solutions here on adobe.com, but nothing works. I have reinstalled it about 5 times, and tried to reinstall Creative Cloud aswell. The only thing that works is if I log on