cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with loggedin user

Former Member
0 Kudos

Hi All,

I have a Requirement where Initiator submits some document for approver here approver accepts it goes for release here my requirement is i have to show user who has accepted and who has rejected the document in the release screen for that i have to get current logged in user and display it in the Release screen but here issue is asoon as Approver gets the workitem and accepts  the request it is not taking current logged in user from portal it showing as Guest but it is working if i keep Authentication from Application properties. But i dont know why it is not taking logged in user from portal.

please suggest.....

Regards,

Rahul.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Can you post the piece of code written "Who currently login in the portal"?

Regards,

Manivannan P

Former Member
0 Kudos

Hi Manivannan,

Thanks for your reply please find the below code

IUser user1 = UMFactory.getAuthenticator().getLoggedInUser();

String UserId = user1.getUniqueName();

Thanks,

Rahul.

Former Member
0 Kudos

Hi,

Can you try this below code

IWDClientUser user = WDClientUser.getCurrentUser();

String userid = user.getFirstName();

if you don't want first name use below one.            

            user.getLastName()

             user.getSAPUser()

Regards,

Manivannan P

Former Member
0 Kudos

Hi Manivannan,

I have tried above code also it is not taking logged in portal user while opening it from portal it is working if i am opening it as application from nwds

Thanks,

Rahul.

Former Member
0 Kudos

Hi,

    

It Should work.The above code is from UME API.

If you integrate with your NWDS application into your portal(Make is as a iView) then only it will works.

If you run the application from NWDS it will always display as "Guest" only.

Regards,

Manivannan P