내 커뮤니티 업적 표시줄을 확대합니다.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

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 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee Advisor
3 답변 개

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

정확한 답변 작성자:
Employee Advisor

Avatar

Level 2

Awesome - Thanks 🙂