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