API to update User Properties | Community
Skip to main content
AJain-1
Level 2
October 16, 2015
Solved

API to update User Properties

  • October 16, 2015
  • 2 replies
  • 1012 views

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

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 smacdonald2008

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

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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

AJain-1
AJain-1Author
Level 2
October 16, 2015

Thanks for the response ... smiley