I have/had the same problem and covered it on StackOverflow. If you look through the updates, you'll find a POC. I still need to refine it by using application rights and acqiureTokenOnBehalfOf calls.
Automating MSTeams call forwarding to a PSTN number via Graph API
Hello,
in our company, MSTeams is linked to traditional PSTN phone numbers,
which makes that anyone can be called in MSTeams, even using 'fixed landlines' or mobile phones.
In MSTeams, you can configure 'call forwarding' manually.
Is it possible to do this configuration also via the Graph API?
The Graph API has 'call:redirect', but if I understand correctly, this API can only be called if you are reacting upon an incoming call somehow.
(https://learn.microsoft.com/en-us/graph/api/call-redirect)
The API we would need, is the programmatic counterpart of the manual configuration action...
br,
Steven