Expand my Community achievements bar.

SOLVED

API to update User Properties

Avatar

Level 2

Hi,

I am using CQ 5.6.1 and trying to find out the API that I should use for updating user properties. I am trying to write back some properties in the preferences node of the logged in user.

I thought of using com.day.cq.security.AccountManager.updateAccount .. but it looks like the parameter needs com.day.cq.security.user.User which seems to have been deprecated,

Is there a better way to update the properties? Please provide inputs

Thanks and regards,

AJ

1 Accepted Solution

Avatar

Correct answer by
Level 10

Use the Jackrabbit UserManager API that is located in this Java package: 

 org.apache.jackrabbit.api.security.user

See this community article for information about working with this API: 

Developing AEM OSGi bundles that use Jackrabbit UserManager APIs

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Use the Jackrabbit UserManager API that is located in this Java package: 

 org.apache.jackrabbit.api.security.user

See this community article for information about working with this API: 

Developing AEM OSGi bundles that use Jackrabbit UserManager APIs

Avatar

Level 2

Thanks for the response ... smiley