Report which users are using the EWS feature

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
User avatar
oetiker
Outstanding Member
Outstanding Member
Posts: 275
Joined: Fri Mar 07, 2014 1:05 pm
Location: Switzerland
ZCS/ZD Version: Release 10.0.6.GA.4518.UBUNTU20_64
Contact:

Report which users are using the EWS feature

Post by oetiker »

Hi

Is it possible to find out which users are using the EWS feature?
BradC
Outstanding Member
Outstanding Member
Posts: 265
Joined: Tue May 03, 2016 1:39 am

Re: Report which users are using the EWS feature

Post by BradC »

It's ugly but I grep the logs.
User avatar
oetiker
Outstanding Member
Outstanding Member
Posts: 275
Joined: Fri Mar 07, 2014 1:05 pm
Location: Switzerland
ZCS/ZD Version: Release 10.0.6.GA.4518.UBUNTU20_64
Contact:

Re: Report which users are using the EWS feature

Post by oetiker »

Something like that?

Code: Select all

/opt/zimbra/log# grep ActiveSync /opt/zimbra/log/sync.log | awk -Fname= '{print $2}' | awk -F\; '{print $1}' | sort | uniq
yogesh.dasi
Zimbra Employee
Zimbra Employee
Posts: 54
Joined: Tue Oct 18, 2022 11:22 am

Re: Report which users are using the EWS feature

Post by yogesh.dasi »

@oetiker

You could use LDAP search to get the users with EWS enabled. Accounts would have EWS enabled on the account with zimbraFeatureEwsEnabled set to TRUE.

LDAP search filter as "(&(objectClass=zimbraAccount) (&(zimbraFeatureEwsEnabled=TRUE)))"
Klug
Ambassador
Ambassador
Posts: 2747
Joined: Mon Dec 16, 2013 11:35 am
Location: France - Drôme
ZCS/ZD Version: All of them
Contact:

Re: Report which users are using the EWS feature

Post by Klug »

yogesh.dasi wrote:You could use LDAP search to get the users with EWS enabled. Accounts would have EWS enabled on the account with zimbraFeatureEwsEnabled set to TRUE.
LDAP search filter as "(&(objectClass=zimbraAccount) (&(zimbraFeatureEwsEnabled=TRUE)))"
This will list the accounts with the feature enabled, not the accounts using it.
BradC
Outstanding Member
Outstanding Member
Posts: 265
Joined: Tue May 03, 2016 1:39 am

Re: Report which users are using the EWS feature

Post by BradC »

This is crude but works :

Code: Select all

egrep -e "ews - User: .* has successfully logged in." ews.log |cut -f3 -d'[' | sort | uniq
Post Reply