Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Doubt with api for creating user
Hi all,
I am trying to create an user from an object action calling headless-admin-user/v1.0/user-accounts. I can create the user sending the fields in the parameter, but the language id for the user is always the default one. Is there any way of specify the language id when create the user? Email than is sent when creation is needed to be sent in the language of the user
Thanks in advance
Hi Daniel,
What format do you want the language id in?
If you
want it for example as "en_EN" you can use ThemeDisplay.
ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
Locale locale = themeDisplay.getLocale();
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™