Searching for authorizable by email | Community
Skip to main content
alexandrad27705
Level 2
April 5, 2016
Solved

Searching for authorizable by email

  • April 5, 2016
  • 3 replies
  • 2711 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Kunal_Gaba_
April 5, 2016

Try with the following servlet - http://localhost:4502/libs/granite/security/search/authorizables.json?query={%22condition%22:[{%22eq%22:{%22property%22:%22profile/@email%22,%22value%22:%22willard.ebbing@geometrixx-media.com%22}}]}

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. 

Kunal_Gaba_
Kunal_Gaba_Accepted solution
April 5, 2016
alexandrad27705
Level 2
April 6, 2016

Awesome - Thanks :)