Use Microsoft Graph to post to the activity feed

%3CLINGO-SUB%20id%3D%22lingo-sub-2702824%22%20slang%3D%22en-US%22%3EUse%20Microsoft%20Graph%20to%20post%20to%20the%20activity%20feed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2702824%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3ETrying%20to%20add%20the%20option%20for%20my%20custom%20app%20to%20send%20notification%20to%20the%20teams%20activity%20feed%20using%20Microsoft%20graph.%3C%2FP%3E%3CP%3E(The%20app%20already%20has%20tab%20and%20connector).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Flearn%2Fmodules%2Fmsteams-teamwork-endpoint%2F6-activity-feed%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Flearn%2Fmodules%2Fmsteams-teamwork-endpoint%2F6-activity-feed%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%20question%20would%20be%2C%20is%20it%20possible%20to%20send%20activity%20feed%20notification%20to%20anyone%20that%20has%20installed%20my%20app%20even%20if%20he%20is%20not%20from%20my%20organisation%2C%20or%20is%20it%20only%20limited%20for%20users%20in%20the%20same%20active%20directory.%20The%20documentation%20is%20not%20very%20clear%20about%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20second%20question%20is%20regarding%20the%20flow%20that%20happens%20when%20someone%20is%20installing%20the%20app.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-attr%22%3E%22resource%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-string%22%3E%22api%3A%2F%2Fapp.contoso.com%2F8a2d385d-8504-43f8-a9b2-80caa44bfe22%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20happens%20in%20this%20callback%20above%20%2C%20is%20it%20just%20a%20communication%20between%20azure%20AD%20and%20the%20MsTeams%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-string%22%3ENot%20much%20is%20mentioned%20regarding%20it.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-string%22%3EAlso%20how%20would%20the%20app's%20server%20be%20informed%20that%20someone%20has%20installed%20the%20app%20and%20get%20the%20teams%20id%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-string%22%3EIs%20this%20information%20being%20shared%20at%20the%20above%20callback%2C%20or%20do%20we%20need%20to%20pull%20Microsoft%20graph%20and%20check%20for%20users%20and%20teams%20Id's%20that%20installed%20the%20custom%20app%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-string%22%3EAny%20help%20will%20be%20appreciated.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-string%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2702824%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ETeams%20activity%20feed%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2706862%22%20slang%3D%22en-US%22%3ERe%3A%20Use%20Microsoft%20Graph%20to%20post%20to%20the%20activity%20feed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2706862%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F327984%22%20target%3D%22_blank%22%3E%40someone_developing%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%3E1.%20It%20is%20not%20possible%20to%20send%20activity%20feed%20notification%20to%20anyone%20that%20has%20installed%20the%20app%20outside%20the%20organization.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E2.%26nbsp%3B%3CSPAN%20class%3D%22hljs-attr%22%3E%22resource%22%3C%2FSPAN%3E%3A%26nbsp%3B%3CSPAN%20class%3D%22hljs-string%22%3E%22api%3A%2F%2Fapp.contoso.com%2F8a2d385d-8504-43f8-a9b2-80caa44bfe22%22%3C%2FSPAN%3E%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BThis%20basically%20the%20Resource%20URL%20of%20app%20for%20acquiring%20auth%20token%20for%20SSO.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E3.%20You%20can%20refer%20these%20links%20to%20get%20list%20of%20apps%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fuserteamwork-list-installedapps%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Einstalled%20for%20user%3C%2FA%3E%20or%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fteam-list-installedapps%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Einstalled%20in%20Teams%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2707058%22%20slang%3D%22en-US%22%3ERe%3A%20Use%20Microsoft%20Graph%20to%20post%20to%20the%20activity%20feed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2707058%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3EThank%20you%20for%20the%20answers%2C%20so%20to%20make%20things%20clear%2C%20if%20I%20want%20to%20write%20an%20app%20that%20will%20send%20activity%20feed%20notification%20to%20anyone%20who%20installed%20it%2C%20Similar%20to%20the%20notifications%20sent%20to%20users%20that%20installed%20the%20connector.%20That%20would%20not%20be%20possible%20at%20the%20moment.%20This%20is%20my%20understanding%20at%20least.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20just%20double%20checking%20before%20telling%20to%20everyone%20to%20drop%20this%20story.%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

Trying to add the option for my custom app to send notification to the teams activity feed using Microsoft graph.

(The app already has tab and connector).

 

https://docs.microsoft.com/en-gb/learn/modules/msteams-teamwork-endpoint/6-activity-feed

 

First question would be, is it possible to send activity feed notification to anyone that has installed my app even if he is not from my organisation, or is it only limited for users in the same active directory. The documentation is not very clear about it.

 

The second question is regarding the flow that happens when someone is installing the app.

 

"resource": "api://app.contoso.com/8a2d385d-8504-43f8-a9b2-80caa44bfe22"

 

What happens in this callback above , is it just a communication between azure AD and the MsTeams?

Not much is mentioned regarding it.

 

Also how would the app's server be informed that someone has installed the app and get the teams id?

Is this information being shared at the above callback, or do we need to pull Microsoft graph and check for users and teams Id's that installed the custom app?

 

Any help will be appreciated.

 

 

 

2 Replies

@someone_developing 
1. It is not possible to send activity feed notification to anyone that has installed the app outside the organization.

2. "resource""api://app.contoso.com/8a2d385d-8504-43f8-a9b2-80caa44bfe22"
     This basically the Resource URL of app for acquiring auth token for SSO.

3. You can refer these links to get list of apps installed for user or installed in Teams

Thanks, 
Prasad Das

---------------------------------------------------------------------------------------

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

Hi,
Thank you for the answers, so to make things clear, if I want to write an app that will send activity feed notification to anyone who installed it, Similar to the notifications sent to users that installed the connector. That would not be possible at the moment. This is my understanding at least.

I am just double checking before telling to everyone to drop this story.