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

rajank91603111
rajank91603111
Offline

Badges

Badges
1

Accepted Solutions

Accepted Solutions
0

Likes

Likes
1

Posts

Posts
2

Discussions

Discussions
2

Questions

Questions
0

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by rajank91603111
Customize the badges you want to showcase on your profile
Re: How do we get current AEM author logged in user id in osgi service/handler - Adobe Experience Manager 04-03-2019
To use this Session session = resourceResolver.adaptTo(Session.class);need resourceResolver object which can get it via ResourceResolverFactory , below source code to get resource resolver , need to pass param object which will have system user.resourcerResolver = resourceResolverFactory.getServiceResourceResolver(param); Session session = resourcerResolver.adaptTo(Session.class);session.getUserID(); // this give system user idbelow code getAdministrativeResourceResolver method to get resourceRe...

Views

9.8K

Like

1

Replies

2
How do we get current AEM author logged in user id in osgi service/handler - Adobe Experience Manager 04-03-2019
is there way to get current author logged in user in OSGI service/handler where we don't have slingHttpRequest object. sling servlet easily current user id can get via below code (if i have logged to AEM author instance as testuser, USER id gives here testuser)ResourceResolver resourceResolver = request.getResourceResolver();session = resourceResolver.adaptTo(Session.class);String userId = session.getUserID()LOGGER.info("USER ID :" + userID);but if same things trying to get in customhandler clas...

Views

11.4K

Likes

0

Replies

8
Likes given to
Likes from