on 11-28-2021 2:44 PM
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
#Application/#ClientData/UserId in web runtime now returns the correct value. Please choose "Preview" web runtime option while deploying MDK metadata to Cloud Foundry.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"Production" web runtime will be updated in two weeks.
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..
User | Count |
---|---|
75 | |
8 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.