Forum Discussion
ashuuas
Mar 24, 2022Copper Contributor
I need to send an individual message to a user from conversation-id using graph api
My requirement is using any api I need to send a message to a user of MS Teams. I have the id of the user and even i have conversation id and tanent id also. but im not sure the converI only see api...
- Sep 26, 2021Hi again,
It's not about the dc's, it's about the aad connect server. Dc's will write what aad connect tells them.
In this config you have to make sure that aad connect isn't a single point of failure and keep it updated.
So it will run like it should as long as aad connect is working.
Hope this answer to your question.
Sayali-MSFT
Microsoft
Mar 25, 2022ashuuas- Please have a look at this doc-
https://docs.microsoft.com/en-us/graph/api/chat-post-messages?view=graph-rest-1.0&tabs=http
Let us know if you have any query.
https://docs.microsoft.com/en-us/graph/api/chat-post-messages?view=graph-rest-1.0&tabs=http
Let us know if you have any query.
- ashuuasMar 25, 2022Copper Contributor
HThanks for replySayali-MSFT
yes i can send message using this endpoint but my pain is that i want to know the user name or userid before sending message .
example i can send message using this endpoint through conversationId but should know the person to whome i am sending messages also.
- Sayali-MSFTMar 28, 2022
Microsoft
ashuuas - Could you please confirm if your issue has resolved with above suggestion or still looking for any help?- ashuuasMar 28, 2022Copper Contributor
Yes Thank you for the support and from this end pount and trace the user and will work for me .
- Sayali-MSFTMar 25, 2022
Microsoft
ashuuas -If you know the user id and chat id of sender. You can use the following api to get the details of receiver.
GET https://graph.microsoft.com/v1.0/chats/19:b8577894a63548969c5c92bb9c80c5e1@thread.v2?$expand=members
Ref Doc:-https://docs.microsoft.com/en-us/graph/api/chat-list?view=graph-rest-1.0&tabs=http#example-2-list-all-chats-along-with-the-members-of-each-chat