cancel
Showing results for 
Search instead for 
Did you mean: 

MDK Current Logged UserID in Web application

yyertuganov
Participant
0 Kudos

Dear Experts,

The app I am developing will be used both in Android and Web, where will need to identify current logged in User for processing in front end codes. My understanding we use UserID in #Application/#ClientData/UserId and it seems working correctly in Android, where it returns current users e-mail address. My problem is in Web application, where I get Empty value for this UserID. I read through some questions in the web but I couldn´t get clear answer if this is bug specifically for Web or something else.

So my 2 questions here:

1. Is it known issue/bug not being able to get UserId in Web version of MDK? If so what would be a workaround?

2. In Android as userID I get current logged users email (e.g. yyertuganov@example.com), is there way to get current logged users Login name instead (like SAP S or P ID or IAS Login id as e.g. 'S00254580' or 'YYERTUGANOV' ?

Many thanks,

Yergali

View Entire Topic
Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert

#Application/#ClientData/UserId in web runtime now returns the correct value. Please choose "Preview" web runtime option while deploying MDK metadata to Cloud Foundry.

fjcarrasco
Active Participant
0 Kudos

jitendrakumar.kansal good news !!!

Is this available in "Preview" and it will be available in "production" in the future?

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert

"Production" web runtime will be updated in two weeks.

yyertuganov
Participant
0 Kudos

Thanks a lot Jitendra!!

Only one more thing, I see right now it returns current loged user, his/her email address, is there any way to access to other data like actual User ID, Name etc.

In case of Android we were accesing them thorugh GET to /mobileservices/application/${appId}/roleservice/application/${appId}/v2/Me..

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos
yergaliyertuganov

Accessing other data is currently not available in web runtime.