コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Authenticated user UserProperties

Avatar

Level 1

 We are authenticating a user using the /j_security_check and then adapting the sling request to UserProperties and UserPropertiesUtil.isAnonymous and always returning true and the username is anonymous and not the name that was logged in

 

code example

 

UserPropertiesUtil..isAnonymous(slingRequest) 

is always true when logged in as admin or any other created user that sits under /home/users/

1 受け入れられたソリューション

Avatar

正解者
Level 10

These are AEM User APIs that should have clear code examples that explains these concepts. I will be adding this use case to the community article list. IN the mean time -- I will dug up code to answer your question. 

元の投稿で解決策を見る

3 返信

Avatar

正解者
Level 10

These are AEM User APIs that should have clear code examples that explains these concepts. I will be adding this use case to the community article list. IN the mean time -- I will dug up code to answer your question. 

Avatar

Level 1

so on an author instance its anonymous and then on a publish instance it correct 

Avatar

Level 10

This functionality needs to be captured in a developer article -- i have tracked it and it will be written.