Skip to Content
author's profile photo Former Member
Former Member

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2004 at 03:41 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2004 at 12:25 PM

    Hello Vasu,

    String[] value = new String{"newValue"};

    newUser.setAttribute("com.sap.security.core.usermanagement",

    "customAttribute", value);

    Regards,

    Artur

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.