administrator
159 TopicsSSO for a Python Teams Bot (M365 Agents SDK + FastAPI) — Single-Tenant, Multi-Tenant, and UAMI
We're building, a Teams bot (Python / FastAPI) that uses the M365 Agents SDK (microsoft-agents-hosting-fastapi + microsoft-agents-authentication-msal, v0.8.0) with a CloudAdapter and MsalConnectionManager. The bot is currently scoped to personal only and runs behind an Azure Bot resource. We are trying to implement SSO to authenticate users, so far we are not successful. The main blocker is that we failed to authenticate users from tenant different than the Azure Bot resource of our app. If anyone has successfully managed to authenticate users on Teams using a setup similar than ours please do share your experience. We would love to learn from your experience. So far this was our main source of documentation: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/authentication/bot-sso-overview Many thanks25Views0likes1CommentGet all AA/CQ with Resource Accounts
Hello Is it possible to have a script that pulls out all AA/CQ with resource accounts. I would like to pull it to find out which of the AA/CQ do not have resource account. If there is no resource account the field would be empty. Regards JFM_12Solved93Views0likes4CommentsAll Teams Bots Not Working At All
This morning all of a sudden all our Teams bots stopped working. These are bots built using bot framework running on Azure Bot Teams Channel. Is this related to the current Teams API issue we talking about? All of a sudden all our client and test bots stopped working. But the Web Channel is working as expected. Only the teams channel. We even checked with ngrok and its not even hitting the service. We checked the app registrations and their credentials as well to ensure not issues there too. Completely lost whats happening. Help?309Views0likes2CommentsAdd Teams Chat Member API call inexplicably Failing
I have tried every possible permutation of this API call that I can imagine. Nothing works. I already started a thread on this, but now it appears to be glitched and I can no longer reply to message sin that thread for some reason. What can I do to contact Microsoft Support and speak directly to their API team? The responses I have gotten all appear to be AI generated and NONE ARE CORRECT. I really need help, from a human, that actually might understand what's going on here. Please help. "#microsoft.graph.aadUserConversationMember' for 'odata.type' is not valid for this operation." <- I am receiving this error despite the fact that we already have several users in this channel with that same type. This API call is intended to invite a user to an existing group chat. This should really be a very simple thing. 1. ALL users in the group chat already have type = '#microsoft.graph.aadUserConversationMember' so the error message doesn't even make sense. 2. This IS a Group chat. NOT a channel. NOT a one on one chat. 3. The Inviter has permission to invite users to this groupchat through the frontend. (and in fact can do so using the frontend.) Why is this API call failing? I have tried scrubbing the API call of special characters, I have tried using the beta endpoint, I have tried several different formats for the input. ERROR: {"error":{"code":"BadRequest","message":"The provided '#microsoft.graph.aadUserConversationMember' for 'odata.type' is not valid for this operation.","innerError":{"date":"2026-02-10T19:11:28","request-id":"XXXXX","client-request-id":"XXXXXX"}}} POST URL: https://graph.microsoft.com/v1.0/chats/IDHERE/members BODY: { "chatType": "group", "\u0040odata.type": "#microsoft.graph.aadUserConversationMember", "user\u0040odata.bind": "https://graph.microsoft.com/v1.0/users/IDHERE", "roles": [] }227Views1like4CommentsIssue with Teams 'Add a User to Group Chat' API call?
I am getting a very strange error when trying to add a new user to an existing group chat using a GraphQL call. I have looked through the documentation, asked AI, and even contacted Microsoft support and no one can seem to explain why this API call is failing. Below is the API call that I am making. I can find no reason that I should be receiving the error message '#microsoft.graph.aadUserConversationMember' To get the basic questions out of the way.... Yes, the account making the API call DOES have permission to add users to the channel (and can do so using the frontend as normal.) Yes, the thread in question is a group chat, so adding members to that chat should be a valid command. Yes, ALL members in the group chat currently have the type '#microsoft.graph.aadUserConversationMember', so it is definitely a valid type for users in this channel. Yes, I have tried both the beta and stable channel; each gives the same error message. Yes, the invited user is internal to our organization, and is a valid target for the invite (invites work through frontend as well.) No, I cannot use the 'add member to channel' endpoint, because the chat is a group chat, not a channel. I can only assume, at this point, that the error message is a red herring and there's something else wrong with my API call?Why am I receiving this error message when trying to add a member to a pre-existing group chat? Thanks in advance for any assistance. POST to URL: https://graph.microsoft.com/beta/chats/[[THREAD_ID]]@thread.v2/members BODY: { "@odXXX.type": "#microsoft.graph.aadUserConversationMember", "roles": [], "email address removed for privacy reasons": "https://graph.microsoft.com/v1.0/users/[[USER_ID]]" } ERROR MESSAGE: {"error":{"code":"BadRequest","message":"The provided '#microsoft.graph.aadUserConversationMember' for 'odXXX.type' is not valid for this operation.","innerError":{"date":"2026-01-29T18:10:32","request-id":"<PII:moderator removed>","client-request-id":"<PII:moderator removed>"}}}304Views0likes8CommentsPowershell adding a existing holiday to Auto Attendant
Hello I have to add an existing Holiday to Auto Attendant and have this script # Connect to Microsoft Teams # Connect-MicrosoftTeams # Variables - Replace with your actual values $autoAttendantName = "AA_Test" $holidaySetName = "Holiday" #$audioFilePath = "Paht\test.wav" # Path to your audio file # 1. Upload Audio File as Prompt $content = [System.IO.File]::ReadAllBytes('Path\test.wav') $audioFile = Import-CsOnlineAudioFile -ApplicationId "OrgAutoAttendant" -FileName "test.wav" -Content $content $audioPrompt = New-CsAutoAttendantPrompt -AudioFilePrompt $audioFile # 2. Create Holiday Call Flow with Disconnect Option $holidayCallFlow = New-CsAutoAttendantCallFlow -Name "Holiday Call Flow" ` -Greetings @($audioPrompt) ` -MenuOptions @( New-CsAutoAttendantMenuOption -Action Disconnect -DtmfResponse Automatic ) # 3. Get existing Auto Attendant and Holiday Set $aa = Get-CsAutoAttendant -Namefilter $autoAttendantName $holidaySet = Get-CsAutoAttendantHolidaySet -Name $holidaySetName # 4. Link Holiday Set and Call Flow to Auto Attendant Set-CsAutoAttendant -Identity $aa.Identity ` -HolidaySets @($holidaySet.Identity) ` -HolidayCallFlow $holidayCallFlow.Identity # 5. Verify Get-CsAutoAttendant -Identity $autoAttendantName | Select-Object Name, HolidaySets, HolidayCallFlow I do get following error Microsoft.Teams.ConfigAPI.Cmdlets.internal\Import-CsOnlineAudioFile : Expected '{' or '['. Was String: Exception. At C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\7.5.0\custom\Merged_custom_PsExt.ps1:7245 char:13 + $internalOutput = Microsoft.Teams.ConfigAPI.Cmdlets.inter ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Import-CsOnlineAudioFile_ImportExpanded], ParserException + FullyQualifiedErrorId : Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Cmdlets.ImportCsOnlineAudioFile_ImportExpanded Where is the mistake Thanks and have a great day JFM_12Solved239Views0likes4CommentsDeleting AutoAttendants and CallQueue
Hello There are commands to delete AutoAttendants and CallQueue. But I get allways an error "Can't remove the Auto Attendant. Auto Attendant is still referenced by Endpoints Ids" Even if all Ressource Accounts are deleted a day before. These Auto Attendants and CallQueues are configured as Calling ID's When I manually delete them after removing there also an error that call queue time was to low. Is it possible to force the deletion. Regards JFM_12292Views0likes7Comments