cancel
Showing results for 
Search instead for 
Did you mean: 

A question about UME APIs

Former Member
0 Kudos

Hello Everyone,

We have a webdynpro application, inside this application we will create User account based on userr's input. Then we will also need to assign corresponding Portal roles to this account via api.

So here my question is whether this solution is possible? If it's possible, then could anyone provide me some information about these APIs usage?

Thanks a lot!!! It's very urgent to us.

Best regards

Deyang

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi! Liu,

i think this is possible by using IRoleFactory API's.As your question is not clear to me, i am not able to give you the code.

with an example try to explain, what exactly you want.

B/W i am giving you the location of UMW API.

<a href="http://help.sap.com/javadocs/NW04/current/um/index.html">http://help.sap.com/javadocs/NW04/current/um/index.html</a>

enjoy,

Mithileshwar

Former Member
0 Kudos

Hi Mithileshwar,

Thanks for your quick information.

In our project, we need some UIs to maintain User account (create , delete, assign portal roles...). In default we can use Portal native "User administrator" to finish this task. But here we have to implement our own, because when we create a user we would like to do some additional tasks.

So we created a Webdynpro DC which will provide a User Maintaince UI. It should have the functionalities to create ,update user accounts in Server's UME. Also it should provide user to possibilities to assign Potal roles. In generally it should be a simplify version of Protal's User Administrator.

So if you have the experience on this topic, could you please provide us more detail information about this topic?

Thanks and Best regards

Deyang

Former Member
0 Kudos

Hi Deyang,

Your requirement is possible using I(Role/Group/User)Factory APIs present in UME API set.

We did PAR application which adds users to group, creates group. IRoleFctory API allows users/groups to be added to role( i.e.Role assignment). Please chek UME API.

Regards,

Ganga.

Former Member
0 Kudos

Hi! Liu,

you can creata new User, roles and all using UME API.

i am giving you a sample code for this and for further help use UME API.

This example will create a user from given UniqueID.

IUserAccountFactory accountFact = UMFactory.getUserAccountFactory();

IUserAccount account = accountFact.newUserAccountnwUserID,userCreated.getUniqueID());

account.setPassword("sahu@123");

account.save();

account.commit();

regards,

Mithileshwar

Former Member
0 Kudos

Hi Ganga,

your application is a PAR application. So does it means if I use webdynpro DC can also achieve this goal?

Thanks a lot!

Best regards

Deyang

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Deyang,

Please read this tutorial https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cfdc9e90-0201-0010-6780-cc30206d...

Hope it would be helpful for u.

Regards,

<b>Seema Rane.</b>