留言板
Adding Users to Liferay
I am trying to use User and Organizations in Control panel.
Control panel >Users>Users and Organizations
When I add user there is a unique user id that gets generated. I am having issues with that unique Id. Can we change that ID ?
Attached screen shots for your reference.
Thanks
Isha
Control panel >Users>Users and Organizations
When I add user there is a unique user id that gets generated. I am having issues with that unique Id. Can we change that ID ?
Attached screen shots for your reference.
Thanks
Isha
No. Why do you need to change the id?
We are using third party systme (UIMS) for authentication and authorization.
We have users already added to that system from our application. We need to send user name to them in order to authorize the logged in user. Liferay is sending this user ID which is not identified by UIMS.
Which fails to get access to the portlet.
Thanks
Isha
We have users already added to that system from our application. We need to send user name to them in order to authorize the logged in user. Liferay is sending this user ID which is not identified by UIMS.
Which fails to get access to the portlet.
Thanks
Isha
I am trying to access user information in controller as below.
String userName = request.getRemoteUser();
I want to get user login information.
String userName = request.getRemoteUser();
I want to get user login information.
In that case the (seemingly custom) integration is wrong and you shouldn't rely on the numeric ID (as it's obviously different) but rather should use a value that's shared by both systems. E.g. you can get the current user from the themeDisplay object (from within a portlet):
themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
User user=themeDisplay.getUser();
You can use screen name instead of userid .Screen Name also always unique.
True.
Screen name is unique but our third party system authentication is configured based on email address.
Screen name is unique but our third party system authentication is configured based on email address.
HI,
We are currently migrating web center portal (portlets) to liferay portal. Most commonly I am seeing issue on UI (JSP pages).
JSP pages have javascripts in them and none of the javascript functions are triggered on liferay.
Appreciate if someone can help me with this issue.
There are coupl action buttons in JSP file and non of those buttons are working and reason is associated javascript function are not been called.
Thanks
Shireesha Veerapaneni
We are currently migrating web center portal (portlets) to liferay portal. Most commonly I am seeing issue on UI (JSP pages).
JSP pages have javascripts in them and none of the javascript functions are triggered on liferay.
Appreciate if someone can help me with this issue.
There are coupl action buttons in JSP file and non of those buttons are working and reason is associated javascript function are not been called.
Thanks
Shireesha Veerapaneni