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.

Similar Messages

  • How to Add custom Attribute in XML

    How to add Custom attribute recusrivly. With sequence order.
    //Before xml:-
    var myxml:XML=
    <root>
    <leval0 >
    <leval1 >
    <leval2></leval2>
    <leval2></leval2>
    </leval1>
    <leval1 >
    <leval2></leval2>
    <leval2></leval2>
    </leval1>
    </leval0>
    </root>
    ////After xml:
    var myxml:XML=
    <root>
    <leval0 levalid="0" >
    <leval1 levalid="0_0" >
    <leval2 levalid="0_0_0"></leval2>
    <leval2 levalid="0_0_1"></leval2>
    </leval1>
    <leval1 levalid="0_1" >
    <leval2 levalid="0_1_0"></leval2>
    <leval2 levalid="0_1_1"></leval2>
    </leval1>
    </leval0>
    </root>

    //call this method
                trace(addAttribute(myxml));
    //method
                private function addAttribute(node:XML, depth:String = ""):XML
                    if (node.hasComplexContent())
                        var count:int = 0;
                        var prefix:String = 0 < depth.length ? depth + "_" : "";
                        var currentAtt:String;
                        for each (var nodeItem:XML in node.children())
                            currentAtt = prefix + count;
                            nodeItem.@levalid = currentAtt;
                            addAttribute(nodeItem,currentAtt);
                            count++;
                    return node;

  • How to add Custom Attributes in the SOAP header for OWSM

    Hi,
    I like to know how to add the Custom Attributes in the SOAP header for OSWM username token authentication.
    Currently we are getting the header element like
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    here we need to add the attribute "soap:mustUnderstand="1" , so the element will look like
    <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    Any info on this will be helpful.
    Thanks,
    ArunM

    Hi Jay, you can make it in more than 1 way.
    I suggest you the following:
    - create an URL iview that points to any URL you want.
    - define a Resource that points to the iview (with a window name, to open in new window)
    - define an Area that points to the resource
    - add your new Area to the your current Area Group
    Regards!

  • How to Add custome attribute value of user id

    Hi my friend.
    from below cmd i can able to view the current attribute value. but i wanted to modify the value. so can you please provide dsmod cmd for modify
    dsquery * domainroot -filter "&(objectCategory=person)(objectClass=user)(sAMAccountName=username)" -attr extensionattribute2
    Dsmod ...................?
    James
    8892722073

    Hi James,
    As you said, the command Dsmod user can be used to modify attributes of one or more existing users in the directory. However, this command could not be used to modify the custom attribute, its syntax has been set.
    You can use builted in Active Directory Attribute Editor to modify a user's attribute:
    Open Active Directory Users and Computers.
    Locate the User container, and then find the user which you want to modify.
    Right-click the user, click Properties, and then click the tab
    Attribute Editor.
    Slect the attribute which you want to modify, click Edit, modify the value, and then
    click OK to save the change.
    For your information, please refer to the following figure:
    What's more, please refer to the following article to learn to use the PowerShell AD Provider to Modify User Attributes
    Use the PowerShell AD Provider to Modify User Attributes
    http://blogs.technet.com/b/heyscriptingguy/archive/2013/03/21/use-the-powershell-ad-provider-to-modify-user-attributes.aspx
    Regards,
    Lany Zhang

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

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

  • 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?

  • 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

  • Office 365 - sharepoint: In Advanced search Page, How to add custom column under property restrictions

     In Advanced search Page, How to add custom column under property restrictions?

    Hi,
    The Navigation control can be added into your HTML page in the Snippet Gallery:
    The two links below about how to create HTML master page and adding snippets needed into it for your reference:
    http://borderingdotnet.blogspot.jp/2012/12/how-to-create-html-masterpage-for.html
    http://msdn.microsoft.com/en-us/library/office/jj822370(v=office.15).aspx
    Feel free to reply if there still any question.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How to  add Custom Relationship in MSS Employee Search Drop down

    Dear Sap Fans,
    I would like to link Custom Drop down link at following path.
    Manager Self-Service->Team->Employee Information->General Information->Employee Selection
    Drop Down 1. Direct Reports
              2. Employee from Organization Structure
              3. Employee from Organization Units
              4. Who's Who
    We would like to add one more custom drop down. Can any one suggest how to add custom drop down in this list ? We have created custom relationship in R/3 but it is not showing in Portal.
    Your prompt reply highly appreciated and points will be rewarded.
    Regards,
    Ashish Brahmbhatt

    Barin,
    I have done settings in back end. I have created new realtionship for evaluation path. I am not able to see that link on portal. How/From Where I can use object and data provider tool and eventing for config ?
    rds,
    Aashish

  • How to add  customer group(KNVV-KDGRP)in the  standard report?

    Dear  All,
    My customer requirment is that  Customer group (KNVV-KDGRP)wise  should be run  in  FBL5N report AND   Customer group should be shown in  FBL3N report.
    how to add  customer group in the  standard report?
    thanking you,
    regards,
    Rupang shah

    Hi,
    This is what I did for FBL5N with a developer because additional fields configuration does include certain tables.
    BTE1650  available for FBL5N and add a new field into one of those tables as an append structure and then use a BTE to populate the field for FBL5N.
    Hope that this helps
    Kind regards

  • How to add custom Template transaction types ( for Quote ) ?

    How to add custom template in transaction types?
    Note : I have gone through below note. But not getting appropriate solution for this.
    982142.1 (OM Sales Order Template Not Available In Layout Template LOV For Print&Preview)
    444687.1 (OM Quote Template Not Available In Layout Template LOV for Print And Preview)
    Thanks in advance..
    Sameer

    Hi
    Thanks for your support,
    Pls let me know which steps i should go ?  my secanrio is  inbound side only,
    step 1 )   Define idoc extension for HRMD_A01 using WE30 transaction and define it in partner profiles
    step 2) do i need to write some code in BADI also to update information for my custom infotype also  if yes then where and which BADI pls let me know  ? because already am working on one badi HRALE00INBOUND_IDOC for  few validation for incoming data.
    step 3 )  add  this new custom infotype in my standard ALE  filters.
    Pls let me know if am mistaking some where or if  i have to do some thing else ?
    Regards
    Meeta & Glory

  • How to add customized payslip in the place of standered payslip.

    Dear Experts,
    We have implementing ESS/MSS, how to add customized payslip( Zprograme) in the place of standered payslip and how do we can get pay slip under ESS from portal.
    Thanks in advance.
    Regards,
    Mahee.

    If you have developed your own SMARTFORM Payslip and a custom program to display it, then there is not much you can do with standard configuration.
    Steps provided by Siddhart will call a custom HRFORMS payslip in a standardv way, or convert a PE51 payslip to SMARTFORMS pdf and display in a standard way.
    You have to work with your Portal Consultant and/or ESS/MSS consultant and ABAP/Webdynpro Programmer for this one.
    One suggested appraoch is
    1) Create A Webdynpro programme which launches when Employee clicks on Payslip link
    2) This program passes the employee user id to an ABAP program in ECC
    3) ABAP Program calls the custom payslip program already developed and generates the payslip and passes it to the webdynpro program as a binary file.
    4) Webdynpro program displays payslip as pdf file.
    this Webdynpro program has a PCD URL. A resource is created and assigned this PCD URL.. Homepage customizing is done - this resource is assigned to the Payslip service which is assigned to the Payslip Subarea.
    Hope this helps. We actually used this approach briefly long back before switching to HRFORMS, so I know it will work, but I have obviously provided very high level here. Hope you can do something with this.
    Edited by: Harish T K on Feb 2, 2011 4:23 PM

  • How to add new attribute in product catalog?

    Hi All,
    Can anyone tell me how to add new field/attribute in product catalog?
    The requirement is to display product's new attribute on product catalog screen.
    Do I need to create any custom java class?
    Need suggestion!!
    Thanks.
    Regards,
    Rupali

    Hello Rupali,
    I am assuming a CRM E-Commerce scenario for my help here.
    Can anyone tell me how to add new field/attribute in product catalog?
    You must start from defining the new Attribute in an exisiting or new Set Type. Use transaction code COMM_ATTRSET. Once you have the attribute / attribute set defined, you can assign this to your catalog - in the header data as the Basic characteristic List.
    to display product's new attribute on product catalog screen
    See catalog/ProductDetailISA.jsp for tips - search for catalog.isa.attribute. The catalog item WebCatItem has all the details available already.
    com.sapmarkets.isa.catalog.webcatalog.WebCatItem currentItem = webCatItem;
    If you want to show the details of attributes in the catalog page - say - catalog/ProductsISA.jsp, the instance of WebCatItem is already available. In this page look for
      <isa:iterate id="item"
                   name="itemPage"
                   type="com.sapmarkets.isa.catalog.webcatalog.WebCatItem">
    You can see that item is an instance of the WebCatItem and follow the code in the <isa:iterate> loop. Using the following code
    Iterator itemAttribute = item.getCatalogItemAttributes();
    will give you the attribute list. You can iterate over the list of attributes and do what you want.
    Easwar Ram
    http://www.parxlns.com

  • 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

Maybe you are looking for

  • If I create a new Apple id account with the same bank details for a old Apple id account will I lose my old account?

    My daughter has created a Apple Id account with my bank details and I have an Apple id account myself on her phone it's comimg up with "This Device Is Already Associated With an Apple ID. If you turn on Automatic Downloads with your Apple ID, you can

  • No previews in Bridge with Adobe Drive 3?

    We are using a custom connector for Adobe Drive. Windows Explorer shows the correct thumbnails and previews for asset versions (in the Show Versions UI). However in Bridge we cannot see any thumbnails or previews. Clearing or purging the cache does n

  • Is there a maximum size for an Application Item?

    I have a pl/sql procedure which inserts some records and has an out variable to return a warning message that I want to append to the normal Success message field in the Processes. Unfortunately I found out that if I defined a hidden variable and use

  • My Podcast is chopping off, not the full podcast

    Hello, After about a year of having no problems, the last two or three podcasts that I've done has had a strange thing happen. Many of the subscribers are only getting 11-15 minutes of a 40 minute podcast. When they clear the podcast and download it

  • Log4j:ERROR Could not instantiate configurator

    I use -Dlog4j.configuratorClass=mypackage.Log4jConfigurator java option in startWeblogic command file to read changes in log4j-config.xml. After that I have in console.log og4j:ERROR A "mypackage.Log4jConfigurator" object is not assignable to a "org.