Expand my Community achievements bar.

SOLVED

Searching for authorizable by email

Avatar

Level 2

Hi, 

I want to use the 'Save a Draft Email' functionality from Geometrixx Finance. I've copied over the respective JS, the workflow and the ecma script that triggers a call to com.adobe.aem.geometrixx.finance.NewsletterUtil. This java class puts out a request to search for 'authorizables' with the email address which was entered into the form - http://localhost:4502/bin/security/authorizables.json?filter=myEmail@com - The search seems to only work for already existing users (e.g Aaron McDonald) but the search comes back empty when I either add a new user with the email or if I change the email address of an existing user. 

Does anyone know why and how I can make this work? What exactly does the triggered servlet do? Which AEM package contains this servlet in order to have a look?

Any help is very appreciated. Thanks, 

Alex

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor
3 Replies

Avatar

Employee Advisor

Try with the following servlet - http://localhost:4502/libs/granite/security/search/authorizables.json?query={%22condition%22:[{%22eq...

The URL which you are trying does not search for email property but rather search only for user id/name. The default users which you are able to search are created with email addresses as their Ids. 

Avatar

Correct answer by
Employee Advisor