Hello @Will Godwin
Thanks for reaching out!
You need to add phone authentication for your users before you can update phone numbers.
Adding phone authentication first: For adding phone authentication for other users, we can use Postman with UserAuthenticationMethod.ReadWrite.All
application permissions granted to your app. Please note that if your user already has a phone number you cannot add it again.
Below are the sample endpoint details-
POST /users/{id | userPrincipalName}/authentication/phoneMethods
{
"phoneNumber": "+1 2065555555",
"phoneType": "mobile"
}
Sample endpoint details: Refer this documentation for PhoneAuthID
PATCH https://graph.microsoft.com/v1.0/users/{user-id}/authentication/phoneMethods/3179e48a-750b-4051-897c-87b9720928f7
{
"phoneNumber": "+1 2065555554",
"phoneType": "mobile",
}
Endpoint Details:
DELETE https://graph.microsoft.com/v1.0/users/{user-id}/authentication/phoneMethods/3179e48a-750b-4051-897c-87b9720928f7
----------
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.