question

TheoGordon-9412 avatar image
0 Votes"
TheoGordon-9412 asked YukiSun-MSFT commented

MS Teams - Get number from deleted user

Is there a way to get the number back from a deleted user in Teams? Preferably via Powershell

office-teams-windows-itpro
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @TheoGordon-9412,

I am writing to see how everything is going on with this thread. If you still have further concern on this, please feel free to let us know.

0 Votes 0 ·
kaaven avatar image
0 Votes"
kaaven answered

There is a feature in the teams powershell module and the commandlet
Get-CsPhoneNumberAssignment

Read more here: https://docs.microsoft.com/en-us/powershell/module/teams/get-csphonenumberassignment?view=teams-ps

If you need more details please specify, I haven't got a tenant with voice atm, but have some experience with Poweshell.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YukiSun-MSFT avatar image
0 Votes"
YukiSun-MSFT answered YukiSun-MSFT commented

Hi @TheoGordon-9412,

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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @TheoGordon-9412,

It has been a few days and I am writing to check if you have had a chance to see the replies provided. Feel free to let us know if you are still looking for help on this.

0 Votes 0 ·