We are currently looking to implement some preferences to Outlook.
We have configurations to block users from adding personal emails but is there a way to report on how many users have personal emails added and how to remove them
Thanks
We are currently looking to implement some preferences to Outlook.
We have configurations to block users from adding personal emails but is there a way to report on how many users have personal emails added and how to remove them
Thanks
Best answer by Josiah_Mensah
I managed to speak to Microsoft and they mentioned a file path that contained the email addresses, so i was able to create this extension attribute below and used an advanced search to export a CSV
#!/bin/bash
# Get the currently logged-in user's username
username=$(stat -f "%Su" /dev/console)
# Set the path to the ProfilePreferences.plist file
plist_path="/Users/${username}/Library/Group Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main Profile/ProfilePreferences.plist"
# Check if the file exists
if [ -f "$plist_path" ]; then
# Use grep to search for the key "ActionsEndPointURLFor" and print the matching lines to the console
echo "<result>$(grep ActionsEndPointURLFor "$plist_path" | grep -o '[^/]*@[^/]*')</result>" | sed 's/ActionsEndPointURLFor//g'
else
# If the file doesn't exist, output an error message
echo "<result>File not found</result>"
fi
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.