Highlighted

AEM 6.4 UserManager userManager = userManagerFactory.createUserManager(session);

Avatar

Avatar

abhisheks144250

Avatar

abhisheks144250

abhisheks144250

16-11-2018

Getting exception in AEM 6.4,
with code as:
UserManager userManager = userManagerFactory.createUserManager(session);
resourceResolver = FFF.getResourceResolver(resourceResolverFactory, session);
PayloadLookup payloadLookup = new PayloadLookup(item, session, userManager);

Exception:

com.adobe.granite.workflow.WorkflowException: java.lang.UnsupportedOperationException: No longer supported (UserManagerFactory#createUserManager(Session)).

Replies

Highlighted

Avatar

Avatar

tusharp13046828

Avatar

tusharp13046828

tusharp13046828

13-12-2018

Are you able to solve this issue?

Highlighted

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

13-12-2018

Hi,

you need to adapt UserManager from reourcersolver.

createUserManager(session) is depricated.

Highlighted

Avatar

Avatar

abhisheks144250

Avatar

abhisheks144250

abhisheks144250

20-12-2018

Use:
import
org.apache.jackrabbit.api.security.user.UserManager;