Expand my Community achievements bar.

SOLVED

How can we select the user from Dialog widget

Avatar

Level 2

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!

1 Accepted Solution

Avatar

Correct answer by
Level 6

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

View solution in original post

4 Replies

Avatar

Level 6

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

Avatar

Level 10

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

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

Avatar

Level 10

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

Adobe Experience Manager Help | Populating AEM Component Dialog fields using JSON data returned by S...

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

Avatar

Correct answer by
Level 6

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