Feb 22 2022 04:53 PM
Hi,
I need to find users in Active Directory who have no Telephone number entry in the AD field but with assigned phone numbers in Teams? I have to type the phone number in Active Directory manually. I need to find a report or solution, so I could update our AD if the person in our team already assigned a phone number in Teams. Any solution to this? Thank you.
Feb 23 2022 12:07 AM
Feb 23 2022 01:00 AM
Hi, @Dobongsoon
If there is no simple way, how about trying to sync with powershell commands.
1. Get all Teams users phone number (using 'MicrosoftTeams' module)
$teamsUsers = Get-CsOnlineUser | Select-Object UserPrincipalName, LineURI
2. Compare phone number between AD and Teams.
(Get-ADUser -Identity $teamsUser -Properties *).Mobile
3. If there is difference, overwrite AD att.
##
I didn't write the full script.
It seems that it can be applied using the above command and foreach syntax.
Thanks.
Feb 23 2022 08:06 AM
Solution@somnio0505 Thank you for the information. This confirms that there is no direct attribute between the two, and that the information lives in two different environment. I will check out the script. I appreciate the time and help on this.