Hello Francisco Rivera,
Thank you for contacting Microsoft Support!
The Get-CsPhoneNumberAssignment
cmdlet is a Teams PowerShell command, not a Graph PowerShell command. To use Get-CsPhoneNumberAssignment
, you must have admin credentials; otherwise, you will encounter an access denied error.
Currently, there is no Graph API endpoint available for retrieving Teams phone numbers. Please check the Q&A.
I would recommend you submit this feature request using this support link, which will be monitored by Microsoft team and make the enhancements to Graph API.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.