Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3131

PE4AD Access user attributes within Java application - for other users

$
0
0

Hi experts,

 

I try to access user attributes within our developed Java application on hcp.

 

First I came up with com.sap.security.um.user.UserProvider & User doesnt return user attributes
After I followed Radosts' instructions  (HTML5 + java application + OAUTH = no user attributes) I could get them - for current logged in user.

 

But I am still not able to access user attributes for other users.

 

import com.sap.security.um.user.User;
import com.sap.security.um.user.UserProvider;
//....
if (request.getParameter("id") == null) {       user = getUserProvider().getCurrentUser(); // returns configured attribs: email, firstname, lastname, displayname  } else {       user = getUserProvider().getUser(request.getParameter("id")); // returns none of them - why?  }
//....

How would I do this?

 

Regards,
Mario Günter


Viewing all articles
Browse latest Browse all 3131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>