Adding custom user properties | Community
Skip to main content
New Participant
December 14, 2022
Solved

Adding custom user properties

  • December 14, 2022
  • 1 reply
  • 756 views

Dear all,

 

I'm trying to add some custom user properties to record last login time and worng password attemps from custom login page.

These properties would be seen as readonly fileds like ID fields below, since the value is programmatically created and cannot be modified on UI.

If this is doable, could anyone tell me how to make this happen? 

 

Thank you in advance!

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

Hello @yusheng 

 

You would have to overlay "/libs/granite/security/content/v2/usereditor/content/items/tabs/items/details/items/columns/items/col2/items/form/items" and append required items to it.

 

In the description you have mentioned custom login is used, so I guess you would be able to get details from the external system via API/Ajax.

 

Custom clientlibs can be added by overlaying /libs/granite/security/content/v2/usereditor/head/clientlibs

 

 

1 reply

aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
December 14, 2022

Hello @yusheng 

 

You would have to overlay "/libs/granite/security/content/v2/usereditor/content/items/tabs/items/details/items/columns/items/col2/items/form/items" and append required items to it.

 

In the description you have mentioned custom login is used, so I guess you would be able to get details from the external system via API/Ajax.

 

Custom clientlibs can be added by overlaying /libs/granite/security/content/v2/usereditor/head/clientlibs

 

 

Aanchal Sikka
YuShengAuthor
New Participant
December 15, 2022

Thank you @aanchal-sikka, I can not add properties!

Indeed custom login is already used and still on the way to get details from the page.