Adding custom user properties | Community
Skip to main content
Level 3
Dec 14, 2022 7:45 AM UTC
Solved

Adding custom user properties

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.
aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
Dec 14, 2022 12:13 PM UTC

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

2 replies

aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
Dec 14, 2022 12:13 PM UTC

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

 

 

Translate
Aanchal Sikka
YuShengAuthor
Level 3
Dec 15, 2022 3:20 AM UTC

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.

Translate