How can we select the user from Dialog widget | Community
Skip to main content
divyak96999766
Level 2
Oct 30, 2017 2:23 PM UTC
Solved

How can we select the user from Dialog widget

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.
manoj_devapath
manoj_devapathAccepted solution
Level 5
Oct 30, 2017 3:44 PM UTC

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
manoj_devapathAccepted solution
Level 5
Oct 30, 2017 3:44 PM UTC

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

Translate
smacdonald2008
Level 10
Oct 30, 2017 3:32 PM UTC

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

Translate
smacdonald2008
Level 10
Oct 30, 2017 3:28 PM UTC

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

Translate
manoj_devapath
Level 5
Oct 30, 2017 3:12 PM UTC

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

Translate