Home

Teams Group Conversation Group ID

%3CLINGO-SUB%20id%3D%22lingo-sub-828907%22%20slang%3D%22en-US%22%3ETeams%20Group%20Conversation%20Group%20ID%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-828907%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20a%20Teams%20app%20which%20is%20installed%20whithin%20a%20specific%20team.%20The%20app%20needs%20the%20group%20id%20of%20the%20team%20to%20add%20some%20members.%20Graph%20has%20an%20api%20to%20enumerate%20all%20the%20groups%20in%20the%20tenant%2C%20but%20I%20don't%20want%20to%20do%20that.%20Is%20there%20any%20way%20to%20get%20the%20group%20id%20of%20the%20team%20to%20which%20the%20app%20is%20installed%20to%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-828907%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eteams%20graph%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-828954%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Group%20Conversation%20Group%20ID%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-828954%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EShould%20be%20able%20to%20do%20this%20through%20the%20graph%20explorer%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fgraph%2Fgraph-explorer%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fgraph%2Fgraph-explorer%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3ELogin%20and%20if%20you%20are%20a%20member%20of%20the%20team%20the%20query%20%E2%80%98My%20joined%20Teams%E2%80%99%20should%20give%20you%20the%20ID.%3CBR%20%2F%3E%3CBR%20%2F%3ETakes%20about%20a%20minute%20to%20get%20it.%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20that%20answers%20your%20question!%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-829362%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Group%20Conversation%20Group%20ID%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-829362%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F169605%22%20target%3D%22_blank%22%3E%40Christopher%20Hoard%3C%2FA%3E%26nbsp%3BCalling%20'My%20joined%20Teams'%20will%20give%20me%20the%20list%20of%20all%20the%20teams%20that%20I'm%20part%20of.%20I%20don't%20want%20that.%20I%20want%20the%20group%20ID%20of%20the%20team%20to%20which%20my%20bot%20is%20installed%20and%20running.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-829531%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Group%20Conversation%20Group%20ID%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-829531%22%20slang%3D%22en-US%22%3EThanks%20-%20I%20may%20have%20framed%20that%20wrong.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20meant%20here%20that%20if%20you%20know%20the%20team%20and%20are%20a%20part%20of%20it%20then%20using%20that%20query%20in%20the%20graph%20explorer%20will%20list%20the%20team%20Group%20ID%2C%20together%20with%20Team%20name.%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20that%20makes%20sense%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-830680%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Group%20Conversation%20Group%20ID%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-830680%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F169605%22%20target%3D%22_blank%22%3E%40Christopher%20Hoard%3C%2FA%3EThat's%20exactly%20my%20problem.%20As%20a%20user%20of%20the%20Teams%20App%20I%20could%20see%20physically%20which%20team%20I'm%20running%20the%20bot%20from%2C%20but%20how%20do%20I%20get%20the%20team%20name%20from%20within%20a%20bot.%20My%20bot%20could%20be%20running%20in%20any%20team%20at%20a%20given%20point%20in%20time.%20I'm%20looking%20for%20graph%20api%20that%20could%20tell%20me%20the%20current%20group%20ID%2C%20the%20conversation%20is%20taking%20place.%20I'm%20exploring%20the%20Teams%20context%20within%20the%20bot%20framework.%20May%20be%20that%20could%20give%20me%20a%20clue.%3C%2FP%3E%3C%2FLINGO-BODY%3E
eynarain
Contributor

We have a Teams app which is installed whithin a specific team. The app needs the group id of the team to add some members. Graph has an api to enumerate all the groups in the tenant, but I don't want to do that. Is there any way to get the group id of the team to which the app is installed to?

4 Replies
Hi,

Should be able to do this through the graph explorer

https://developer.microsoft.com/en-us/graph/graph-explorer

Login and if you are a member of the team the query ‘My joined Teams’ should give you the ID.

Takes about a minute to get it.

Hope that answers your question!

Best, Chris

@Christopher Hoard Calling 'My joined Teams' will give me the list of all the teams that I'm part of. I don't want that. I want the group ID of the team to which my bot is installed and running.

Thanks - I may have framed that wrong.

I meant here that if you know the team and are a part of it then using that query in the graph explorer will list the team Group ID, together with Team name.

Hope that makes sense

Best, Chris

@Christopher HoardThat's exactly my problem. As a user of the Teams App I could see physically which team I'm running the bot from, but how do I get the team name from within a bot. My bot could be running in any team at a given point in time. I'm looking for graph api that could tell me the current group ID, the conversation is taking place. I'm exploring the Teams context within the bot framework. May be that could give me a clue.