Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
Can you please help me with how to read id(9wMp6sGyejwQn-rzopsh) based on the user login. How to EX: If admin user login then need to display this id: 9wMp6sGyejwQn-rzopsh
@Bimmi_Soi@Kiran_Vedantam
Solved! Go to Solution.
Hi @kotireddy4b1
You should be simple able to get it from Authorizable
Sample code snippet:
Session session = resourceResolver.adaptTo(Session.class); UserManager userManager = resourceResolver.adaptTo(UserManager.class); Authorizable auth = userManager.getAuthorizable(session.getUserID());
from this you can simply get id or path of logged in user.
Thanks
Dipti
View solution in original post
Views
Likes
Replies