Is there a way to get the number back from a deleted user in Teams? Preferably via Powershell
There is a feature in the teams powershell module and the commandlet
If you need more details please specify, I haven't got a tenant with voice atm, but have some experience with Poweshell.
Are you referring to phone number assigned in Teams?
As far as I know, it's not feasible to retrieve the data from a "deleted" user. If it's a recently deleted user(within 30 days), you can try restoring the user's account and then connect to Teams powershell, run the command below to get its phone number:
Get-CsOnlineUser <UserIdentity> | ft LineURI
But if the user has already been deleted permanently, I am afraid it cannot be retrieved any more.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
23 people are following this question.