Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

com.adobe.granite.security.user.UserProperties Java Class: what\'s the difference between authorizableId vs principalName?

Avatar

Level 8

I created a new user (ID=a0001) in my local AEM and both functions give me the same value (which is a0001).

 

The Adobe reference document is not very clear on the distinction. Thanks

 

EDIT: I had a look in CRX/DE for the properties of a0002 user and rep:principleName and rep:authorizableId has the same value.

 

 

String principalName = userProperties.getPrincipalName();
String authorizableID = userProperties.getAuthorizableID();

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor

I have got this information -

DEBAL_DAS_0-1649224592550.png

https://blogs.taylor-made-software.co.uk/aem/101/build/apps/users.html

 

Hope this will help.