Customize dotcms user attributes

22 views
Skip to first unread message

Olga Klipa

unread,
May 29, 2023, 3:19:23 PM5/29/23
to dotCMS User Group
I am searching for the possibility to customize dotcms user. I  would like to add / modify user attributes.
Any help/ guidance in this regard would be appreciated.

Thank you in advance,
Olga

jonathan...@dotcms.com

unread,
May 30, 2023, 11:05:56 AM5/30/23
to dotCMS User Group
As part of the user_ table has a new column called; additional_info which is a json field.
It is mapped on the User class (UserModel which is the superclass) as:

https://github.com/dotCMS/core/blob/master/dotCMS/src/main/java/com/liferay/portal/model/UserModel.java#L941

So you can add extra properties, key value to that map and assign to the user and save it

Best,
J

Reply all
Reply to author
Forward
0 new messages