Solved
AEM 5: How can i get an email address from userid in cq 5.5
How can i get email address from the userid/Authorizable as in CQ 5.5 Profile class is Deprecated
Environment CQ 5.5, Linux
How can i get email address from the userid/Authorizable as in CQ 5.5 Profile class is Deprecated
Environment CQ 5.5, Linux
use com.adobe.granite.security.user.UserProperties instead. e.g.
UserProperties u = resourceResolver.adaptTo(UserProperties.class);
String email = u.getProperty(UserProperties.EMAIL);
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.