Expand my Community achievements bar.

SOLVED

Touch UI User Picker- allowing groups in the user selection dropdown?

Avatar

Former Community Member

Hi,

I need to allow groups also appear in the userpicker drop down. I see only option to override the userpicker. Have any one done this in before. Please suggest.

 

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi

Agreeing with Scott.

You need to write sling servlet and use User manager APIto get User/Group info.

Link:- https://helpx.adobe.com/experience-manager/using/jackrabbit-users.html

Link:- https://helpx.adobe.com/experience-manager/using/developing-aem-osgi-bundles-jackrabbit.html

I hope this would help You.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

3 Replies

Avatar

Level 10

One way you can perform this requirement is to write a sling servlet and get the user/group information you need via the Jackrabbit User Manager API. 

https://jackrabbit.apache.org/api/2.2/org/apache/jackrabbit/api/security/user/UserManager.html

Then you can use the return value of the sling servlet to populate a dialog dropdown. See this AEM community article: 

https://helpx.adobe.com/experience-manager/using/dialog_fields_servlets.html

Avatar

Correct answer by
Administrator

Hi

Agreeing with Scott.

You need to write sling servlet and use User manager APIto get User/Group info.

Link:- https://helpx.adobe.com/experience-manager/using/jackrabbit-users.html

Link:- https://helpx.adobe.com/experience-manager/using/developing-aem-osgi-bundles-jackrabbit.html

I hope this would help You.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 10

Try using xtype="authselection" in your dialog if this is not what you want then you can use the curl to get the results