Highlighted

Users count

Avatar

Avatar

bhaskarans51181

Avatar

bhaskarans51181

bhaskarans51181

21-06-2019

Hi

How to find the users count in particular website in AEM?

Please help me if you have any ideas?

Replies

Highlighted

Avatar

Avatar

Abambo

Avatar

Abambo

Abambo

21-06-2019

Discussion successfully moved from Forum comments to Adobe Experience Manager

Just to note: Forum comments​ is for problems related to the fora...

Highlighted

Avatar

Avatar

joeb21688728

Avatar

joeb21688728

joeb21688728

21-06-2019

Highlighted

Avatar

Avatar

bhaskarans51181

Avatar

bhaskarans51181

bhaskarans51181

21-06-2019

Hi Joeb

Thanks for your reply, but i wanted to find the users list into the particular website. we have lot of websites in our environments. So i wanted to find user count on each and every website. can you please help me with this?

Highlighted

Avatar

Avatar

Bharath_valse

Avatar

Bharath_valse

Bharath_valse

21-06-2019

All users in aem are stored under /home/users. Do you have a property or anything in particular to distinguish users for a specific website? Are you using AEM communities by any chance or its a normal multi tenant instance?

Highlighted

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K
Jörg_Hoh
Employee

22-06-2019

what type of users are you looking for? Are you interested in the users who are doing the authoring work for a specific website? Or are you rather interested in the people visiting one of your websites?

Highlighted

Avatar

Avatar

bhaskarans51181

Avatar

bhaskarans51181

bhaskarans51181

25-06-2019

HI Joerg

I am interested to know the number of users who are doing authoring

Highlighted

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K
Jörg_Hoh
Employee

25-06-2019

I could think of at least 2 different approaches:

* iterate through all of your users; for each user impersonate into a user session (get an admin session first and impersonate afterwards into a session owned by that user) and check if you can read (or write) the root page of that site; this assumes that you can make a solid statement based on the accessibility of this rootpage. If you ACL setup is complex for websites and the root page does not qualify for this statement, you need to find a different definition of "users who have access to that site".

* iterate through the content of the site (including all versions) and find all the users who actually performed changes by inspecting the properties cr:createdBy and jcr:lastModifiedBy.

Depends on your definition of "users who are doing authoring".

Jörg