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

Creating Users using UME API

Hi,

I'm creating a user dynamically using UME API's available. User is being successfully created and even I can assign roles to the particular user(I can see that by my administration account).

But the problem occurs here is I'm not able to log-in with that particular user ID to Portal as I've not given any password for that. So, the question here is...how to set the password for the user created dynamically or say is there any default password kind of thing b which i can log-in and afterwards change that.

Regards,

Mausam

PS : I've tried logging-in with blank password. its not working.

And one other thing is there are methods in IUserAccounts interface to set the user password. But, how to assign account to users I don't know.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 27, 2005 at 08:03 PM

    For LDAP user's I use DirectoryManager.changePassword("LDAP info", password)

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 11, 2005 at 08:27 AM

    Hi Mausam,

    beneath creating the user you'll also have to create a corresponding account (by userAccountFactory.newUserAccount(logonid, uniqueIdOfUser), where the uniqueID is the one from the user created before and the logonid is just the id you want to use to log on; on the created account, call setPassword(pw)). See https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/javadocs/nw04/sp12/user management engine - version 4.0/com/sap/security/api/iuseraccount.html for details.

    Hope it helps

    Detlev

    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2014 at 06:25 PM

    Hi Mausam,

    Could you please update the details steps and the process about how you did the dynamic user creation and assigning Roles in Portal using UME APIs.

    I intend to do the same i.e users created in ECC ( SNC- Supply Network Collaboration in our case ) should dynamically get created in SAP Netweaver Portal and a particular role should be assigned to the users . Hence I intend to create a Web Service in Portal which will create users dynamically in Portal based on the data provided by SNC Portal.

    Following is a use case for user creation requirement from ECC ( SNC ) to SAP Netweaver Portal.

    Appreciate your timely inputs on the detailed steps .

    Thanks

    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.