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

Avatar

Avatar
Validate 1
Level 2
abhisheks144250
Level 2

Like

1 like

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
abhisheks144250
Level 2

Like

1 like

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
abhisheks144250
Level 2

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

Avatar

Avatar
Level 1
tusharp13046828
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
tusharp13046828
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
tusharp13046828
Level 1

13-12-2018

Are you able to solve this issue?

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,318 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,318 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

13-12-2018

Hi,

you need to adapt UserManager from reourcersolver.

createUserManager(session) is depricated.

Avatar

Avatar
Validate 1
Level 2
abhisheks144250
Level 2

Like

1 like

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
abhisheks144250
Level 2

Like

1 like

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
abhisheks144250
Level 2

20-12-2018

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