cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Role id at Runtime

Former Member
0 Kudos

Hi Experts

I need to get the portal role information ie Role Name and Role id which is currently assigned to the current user in runtime through webdynpro java please help me out in this issue

Regards

Noel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

Hope this link helps you

Regards,

Sunitha Hari

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

if you want to get the uniquename of the logged in portal user use this code.

String Username = "";

IWDClientUser wdUser = null;

try {

wdUser = WDClientUser.getCurrentUser();

} catch (WDUMException e) {

e.printStackTrace();

}

IUser user = wdUser.getSAPUser();

();

Username =user.getUniqueName();

// for unique ID use user.getUniqueId().

for this you need to add the security.api jar file.

Right click on the project properties->addexternal jars and add this .jar file

hope that is helpful,let me know if you have any issues

regards

Anil

Former Member
0 Kudos

Hi,

hope this thread will help you,

Thanks,

Ramesh