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