Home

Is there a kind of Get-CSUserSsession available in Teams ?

%3CLINGO-SUB%20id%3D%22lingo-sub-260562%22%20slang%3D%22en-US%22%3EIs%20there%20a%20kind%20of%20Get-CSUserSsession%20available%20in%20Teams%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-260562%22%20slang%3D%22en-US%22%3E%3CP%3Egood%20morning%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewithin%20SfB%20%2C%20the%20%3CSTRONG%3EGet-CsUserSession%3C%2FSTRONG%3E%20cmdlet%20exists%20for%20retrieving%20individual%20usersessions.%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20if%20a%20similar%20thing%20exists%20within%20MS%20Teams%20%3F%3C%2FP%3E%3CP%3Ei%20haven't%20found%20anything%20in%20the%20existing%20Graph%20API%26nbsp%3B%20or%20Teams%20Powershell%20cmdlets%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%3C%2FP%3E%3CP%3Estefan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-260562%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EActivity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-320021%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20kind%20of%20Get-CSUserSsession%20available%20in%20Teams%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-320021%22%20slang%3D%22en-US%22%3E%3CP%3E%22%3CSPAN%3EBTW%3A%26nbsp%3B%20for%20CQD%20(online)%20an%20REST%20API%20exists%20which%20I%20can%20use%20%22partly%22%20for%20my%20requirement%20--%26gt%3B%20not%20documented%20but%20it%20exists%20%3A)%3C%2Fimg%3E%3C%2FSPAN%3E%22%20-%20haha%2C%20I%20like%20this%2C%20welcome%20back%20to%20reverse%20engineering%2C%20thanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F44882%22%20target%3D%22_blank%22%3E%40Stefan%20Fried%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-315295%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20kind%20of%20Get-CSUserSsession%20available%20in%20Teams%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-315295%22%20slang%3D%22en-US%22%3E%3CP%3EBTW%3A%26nbsp%3B%20for%20CQD%20(online)%20an%20REST%20API%20exists%20which%20i%20can%20use%20%22partly%22%20for%20my%20requirement%20--%26gt%3B%20not%20documented%20but%20it%20exists%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECall%20Analytics%20data%20however%20is%20still%20not%20available%20via%20an%20API%3A(%3C%2FP%3E%3CP%3E(at%20least%20there%20is%20no%20public%20ifo%20available)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-315290%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20kind%20of%20Get-CSUserSsession%20available%20in%20Teams%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-315290%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214077%22%20target%3D%22_blank%22%3E%40Maryan%20Dmytriv%3C%2FA%3E%26nbsp%3B%20basically%20you%20can%20use%20the%20following%20link%20as%20a%20basis%26nbsp%3B%20for%20identifying%20active%2Finactive%20channels%20in%20a%20team%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-list-messages%3Fview%3Dgraph-rest-beta%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-list-messages%3Fview%3Dgraph-rest-beta%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eyou%20then%20check%20the%20recent%20message%20(and%20reply)%20in%20the%20channel%20and%20check%20the%20%22lastmodifiedDateTime%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehope%20this%20helps%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3Estefan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-314641%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20kind%20of%20Get-CSUserSsession%20available%20in%20Teams%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-314641%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F44882%22%20target%3D%22_blank%22%3E%40Stefan%20Fried%3C%2FA%3E%2C%20could%20you%20please%20share%20a%26nbsp%3Blink%20to%20this%20information%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-264853%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20kind%20of%20Get-CSUserSsession%20available%20in%20Teams%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-264853%22%20slang%3D%22en-US%22%3E%3CP%3Eok..i%20found%20already%20an%20answer%20to%20my%20previous%20questions%20(-active%2Finactive%20channel)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Egraph%20provides%20new%20capabilities%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-261923%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20kind%20of%20Get-CSUserSsession%20available%20in%20Teams%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-261923%22%20slang%3D%22en-US%22%3E%3CP%3Eyes%2C%20i'm%20aware%20of%20the%20Graph%20API%20Reports%20for%20Teams%20which%20is%20a%20good%20start.%3CBR%20%2F%3Ei%20just%20thought%20that%20because%20MS%20said%20that%20they%20have%20now%20an%20equal%20feature%20set%20between%20SfB%20and%20Teams%20that%20this%20is%20also%20valid%20when%20it%20comes%20to%20Usage%20data%20-%20Unfortunately%20this%20is%20not%20the%20case%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3Ejust%20another%20question%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Eif%20a%20MS%20Partner%20says%20that%20they%20can%20provide%20information%20on%3C%2FP%3E%3CP%3E-most%20active%2Finactive%20teams%3C%2FP%3E%3CP%3E-most%20active%2Finactive%20channels%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Ewhat%20Source%20they%20are%20using%20to%20get%20to%20this%20data%20%3F%20i%20mean%20this%20is%20not%20part%20of%20the%20graph%20api.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eare%20there%20any%20hidden%2Fsecrets%20way%20how%20to%20get%20to%20this%20data%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%3C%2FP%3E%3CP%3Estefan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-261904%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20kind%20of%20Get-CSUserSsession%20available%20in%20Teams%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-261904%22%20slang%3D%22en-US%22%3E%3CP%3EUnfortunately%20this%20granular%20information%20is%20not%20available%20at%20the%20moment.%20However%20in%20the%20admin%20center%20you%20can%20find%20some%20Teams%20reports.%20I%20recommend%20to%20export%20the%20user%20activity%20report%20as%20it%20gives%20you%20insights%20on%20who%20was%20last%20active%2C%20on%20which%20device%20and%26nbsp%3Bsome%20insights%20into%20the%20user%20activity.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20should%20give%20you%20good%20insights%20as%20well%20to%20drive%20usage.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-261846%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20kind%20of%20Get-CSUserSsession%20available%20in%20Teams%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-261846%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F15786%22%20target%3D%22_blank%22%3E%40Thomas%20Binder%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20general%20my%20overall%20aim%20is%20to%20get%20as%20much%20Usage%20data%20as%20possible%20out%20of%20MS%20Teams.%3C%2FP%3E%3CP%3EIn%20this%20example%20i'm%20interested%20in%20all%20Call%2FMeeting%20usage%3C%2FP%3E%3CP%3E--%26gt%3B%20private%20calls%20(organizer%2Fparticipant%20names).....team%20calls....duration%20of%20calls....date%2Ftime%20when%20the%20call%20started%2Fended%2C....maybe%20quality%20information.....etc%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOut%20of%20this%20i%20would%20like%20to%20draw%20different%20visualizations%20in%20order%20to%20cover%20different%20usecases.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Epretty%20much%20the%20thing%20which%20is%20covered%20with%20get-csuserssession%20in%20SfB%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-261246%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20kind%20of%20Get-CSUserSsession%20available%20in%20Teams%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-261246%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20do%20you%20want%20to%20achieve%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Stefan Fried
Regular Contributor

good morning

 

within SfB , the Get-CsUserSession cmdlet exists for retrieving individual usersessions.

Does anyone know if a similar thing exists within MS Teams ?

i haven't found anything in the existing Graph API  or Teams Powershell cmdlets

 

thank you

stefan

9 Replies

What do you want to achieve?

Hello @Thomas Binder

 

In general my overall aim is to get as much Usage data as possible out of MS Teams.

In this example i'm interested in all Call/Meeting usage

--> private calls (organizer/participant names).....team calls....duration of calls....date/time when the call started/ended,....maybe quality information.....etc

 

Out of this i would like to draw different visualizations in order to cover different usecases.

 

pretty much the thing which is covered with get-csuserssession in SfB

 

thank you

 

Unfortunately this granular information is not available at the moment. However in the admin center you can find some Teams reports. I recommend to export the user activity report as it gives you insights on who was last active, on which device and some insights into the user activity.

 

This should give you good insights as well to drive usage.

yes, i'm aware of the Graph API Reports for Teams which is a good start.
i just thought that because MS said that they have now an equal feature set between SfB and Teams that this is also valid when it comes to Usage data - Unfortunately this is not the case


just another question:

if a MS Partner says that they can provide information on

-most active/inactive teams

-most active/inactive channels


what Source they are using to get to this data ? i mean this is not part of the graph api.

 

are there any hidden/secrets way how to get to this data ?

 

thank you

stefan

 

 

ok..i found already an answer to my previous questions (-active/inactive channel)

 

graph provides new capabilities

 

@Stefan Fried, could you please share a link to this information?

@Maryan Dmytriv  basically you can use the following link as a basis  for identifying active/inactive channels in a team

 

https://docs.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-beta

 

you then check the recent message (and reply) in the channel and check the "lastmodifiedDateTime"

 

hope this helps :)

stefan

 

BTW:  for CQD (online) an REST API exists which i can use "partly" for my requirement --> not documented but it exists :)

 

Call Analytics data however is still not available via an API:(

(at least there is no public ifo available)

"BTW:  for CQD (online) an REST API exists which I can use "partly" for my requirement --> not documented but it exists :)" - haha, I like this, welcome back to reverse engineering, thanks @Stefan Fried

Related Conversations
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
2 Replies
*Updated 9/3* Syncing in Microsoft Edge Preview Channels
Elliot Kirk in Articles on
202 Replies
Early preview of Microsoft Edge group policies
Sean Lyndersay in Discussions on
65 Replies