Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

Avatar

Level 2

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)).

0 Replies

Avatar

Community Advisor

Hi,

you need to adapt UserManager from reourcersolver.

createUserManager(session) is depricated.

Avatar

Level 2

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