Customize dotcms user

40 views
Skip to first unread message

Olga Klipa

unread,
May 29, 2023, 3:19:23 PM5/29/23
to dotCMS User Group
Hello,

I am searching for the possibility to customize dotcms user. I would like to add /modify user attributes. I would appreciate any guidance /help in this regard.

Thank you in advance,
Olga

jonathan...@dotcms.com

unread,
May 30, 2023, 11:06:36 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

Olga Klipa

unread,
May 30, 2023, 1:22:01 PM5/30/23
to dotCMS User Group
Thank you Jonathan!

jonathan...@dotcms.com

unread,
May 30, 2023, 4:04:15 PM5/30/23
to dotCMS User Group
Sure, lemme know if you need anything else

Best,
J

Reply all
Reply to author
Forward
0 new messages