How can we select the user from Dialog widget | Community
Skip to main content
divyak96999766
Level 2
October 30, 2017
Solved

How can we select the user from Dialog widget

  • October 30, 2017
  • 4 replies
  • 2633 views

I want to select the Users existing in the instance from the dialog widget. I actually have tried using xtype as 'authselection' and 'userinfo' but couldnt able to do it. Can anyone please suggest on how to meet the requirement.

Thanks in advance!

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 manoj_devapath

pls proceed with smacdonald2008​ solution, this will prefectly wok

tip: pls use latest jackrabit Usermanager API for java logic in 6.3

ref: cq5 - How to get user list of given group in AEM6.1 - Stack Overflow

4 replies

manoj_devapath
Level 5
October 30, 2017

resourceResolver.adaptTo(Session.class).getUserID() to get current User ID

smacdonald2008
Level 10
October 30, 2017

See this article for TOuch UI. You can populate an AEM Touch UI select field located in a component dialog using a WCMUSePOJO.

Adobe Experience Manager Help | Using an WCMUsePojo class to populate an Experience Manager Touch UI Select Field

In the Java logic - use the User Manager API https://jackrabbit.apache.org/api/2.6/org/apache/jackrabbit/api/security/user/UserManager.html

smacdonald2008
Level 10
October 30, 2017

If you are using Classic Component - then see this one:

Adobe Experience Manager Help | Populating AEM Component Dialog fields using JSON data returned by Sling Servlets

Using Java app logic - you can get a list of users using the User Manager API

manoj_devapath
manoj_devapathAccepted solution
Level 5
October 30, 2017

pls proceed with smacdonald2008​ solution, this will prefectly wok

tip: pls use latest jackrabit Usermanager API for java logic in 6.3

ref: cq5 - How to get user list of given group in AEM6.1 - Stack Overflow