This is the article no 05 in the series.
Having a complete profile in Office365 is not just a benefit for user himself, but for the entire organization which directly impacts on productivity. A finished profile leads to better visibility and eventually results in faster communications across hundreds of thousands of employees in an enterprise setup. Ultimate idea of Office Delve (latest interface of profile comes with more capabilities such as recent activities) is to provide overall insights of a user information and his activities/engagements which makes obvious sense for anyone.
Nevertheless, none of these would be in action unless you have a complete profile with basic details entered in. No matter how much HR would try to push, we still spot a lot of random users who haven’t completed their profiles.
With this short and sweet article series, I’m trying to give you the steps that we followed during the identifying process as requested by our HR. screenshots may differ than our production setup, but you surely will get the point here.
I had to use some PowerShell scripting to get this list out from Office 365 and generate a CSV file for each criteria so that HR can directly reach out to the user via emails and advice to take an action to update the profile on the spot. As a result, we were able to get 100% completeness of profiles across a 5000+ employee organization.
There is no out of the box reporting when it comes to Profile Completeness in Office 365, therefore we have no option other than PowerShell. PowerShell is the ultimate tool for O365 administration, whenever graphical interface has a barrier, hence, make sure you dig around it to understand its capabilities to go beyond.
FINDING USERS WITH NO COUNTRY SET IN THEIR PROFILE (This Article)
In this article I’m demonstrating the steps it takes to find out the users who has not set their relevant country in Office 365 profiles (or simply, delve profile). This isn’t sort of a blog I wanted to write but since this daily requests comes from HR to find users (not criminals though !), this might be a common case in most places and why not write down the steps right?
So here we go, following are the requirements before we get started. Make sure you setup your environment with these:
- Azure AD PowerShell Module: https://www.powershellgallery.com/packages/AzureAD
- Azure AD Administrator
First and foremost, we need to fetch the Office365 credentials and then connect to Azure Active Directory.
$cred = get-Credential Connect-AzureAD -Credential $cred
$Users = Get-AzureADUser | Where {$_.UserType -eq 'Member' -and $_.AssignedLicenses -ne $null}
$NoCountryUsers = @()
Now we will dig in through each user, and check if they have any value set in their Azure AD user profile. If not, we will save them in to the array we crated. And then finally export these set of users in to a CSV file called “NoCountryUsers.csv“.
foreach ($user in $Users) { if ($user.Country -eq $null) { $NoCountryUsers += $user } }
$NoCountryUsers | Select DisplayName, UserPrincipalName | Export-Csv -Path "C:\Tools\Reports\NoCountryUsers.csv" -NoTypeInformation
If you need to obtain a similar report on other user criteria’s, here are the other articles of this series which would help you to achieve it.
- Find and export list of users with no Manager Name set in Office 365 profile:
- Find and export list of users with no Manager Name set in Office 365 profile:
- Find and export list of users with no Profile Picture set in Office 365 Account:
- Find and export list of users with no Birthday set in Office 365 profile:
- Find and export list of users with no Country set in Office 365 Profile:
- Find and export list of users with no Department set in Office 365 Profile:
- Find and export list of users with no Skills Defined in Office 365 profile:
- Find and export the list of users who has not completed About Me section in their Office 365 profile
Pingback: Find and export the list of users who has not completed About Me section in their Office 365 profile – Microsoft Cloud Services & Technology Journal
Pingback: Find and export list of users with no Skills Defined in Office 365 profile – Microsoft Cloud Services & Technology Journal
Pingback: Find and export list of users with no Department set in Office 365 profile – Microsoft Cloud Services & Technology Journal
Pingback: Find and export list of users with no Profile Picture set in Office 365 Account – Microsoft Cloud Services & Technology Journal
Pingback: Find and export list of users with no Birthday set in Office 365 profile – Microsoft Cloud Services & Technology Journal
Pingback: Find and export list of users with no Manager Name set in Office 365 profile – Microsoft Cloud Services & Technology Journal
Pingback: Find and export list of users with no phone number set in Office 365 profile – Microsoft Cloud Services & Technology Journal