Home

Can't find teams or group using GRAPH

%3CLINGO-SUB%20id%3D%22lingo-sub-530440%22%20slang%3D%22en-US%22%3ECan't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-530440%22%20slang%3D%22en-US%22%3E%3CP%3EHappy%20Friday.%20End%20goal%20is%20to%20fetch%20all%20members%20of%20a%20team.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%2Fv1.0%2Fme%2FjoinedTeams%20-%20returns%20a%20'resource%20does%20not%20exist'%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%2Fv1.0%2Fme%20-%20returns%20a%20suspiciously%20sparse%20user%20profile%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20968px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F112095i126F02C39BEE7FE3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20then%20manually%20extracted%20the%20team_id%20from%20the%20team's%20shareable%26nbsp%3Blink%20and%20tried%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%2Fv3%2Fconversations%2Ffc5b01dd-15e1-4102-8b18-12863e77022f%2Fmembers%20-%20returns%20an%20'Authorization%20has%20been%20denied'%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20used%20the%20same%20email%20for%20the%26nbsp%3B%3C%2FSPAN%3Erequests%26nbsp%3B%3CSPAN%3Eand%20Teams.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EIs%20it%20possible%20it's%20being%20treated%20as%20two%20emails%20hence%20the%20disconnect%3F%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EI%20could%20be%20making%20an%20obvious%20mistake%20and%20appreciate%20any%20help.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-530440%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-530694%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-530694%22%20slang%3D%22en-US%22%3EHave%20you%20properly%20logged%20in%20to%20the%20graph%20explorer%20with%20your%20account%20prior%20to%20running%20these%3F%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-531238%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-531238%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72542%22%20target%3D%22_blank%22%3E%40adam%20deltinger%3C%2FA%3E%20is%20right%20here%2C%20it%20seems%20that%20you%20are%20running%20these%20in%20the%20context%20of%20a%20Guest%20user.%20Make%20sure%20you%20are%20using%20the%20correct%20account%2C%20as%20Guest%20users%20have%20very%20limited%20set%20of%20operations%20they%20can%20run%20against%20the%20Graph.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-531337%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-531337%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BI've%20been%20making%20these%20requests%20through%20Postman.%20Do%20they%20have%20to%20be%20done%20through%20Graph%20Explorer%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdditionally%2C%20I%20was%20planning%20on%20eventually%20using%20django%20requests%20to%20automate%20the%20updating%20our%20teams%20db.%20Any%20hope%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-531366%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-531366%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BUPDATE%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETried%20running%20in%20GRAPH%20Explorer%20to%20the%20same%20result%20resource%20not%20found.%20I%20don't%20think%20it's%20a%20permissions%20error%20either.%20The%20email%20I%20logged%20in%20to%20GRAPH%20with%20is%20definitely%20part%20of%20a%20Team.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-532677%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-532677%22%20slang%3D%22en-US%22%3E%3CP%3EPostman%20or%20Graph%20doesn't%20matter%20here%2C%20that's%20just%20the%20client%20issuing%20the%20request.%20What%20matters%20is%20that%20you%20are%20running%20it%20in%20the%20context%20of%20a%20Guest%20user%2C%20not%20a%20full-fledged%20tenant%20user.%20Guests%20are%20limited%20in%20what%20they%20can%20see%2Fdo%20via%20Graph%20or%20any%20other%20endpoints.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-538781%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-538781%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%3CSPAN%3EUsing%20an%20Azure%20AD%20account%20(%3C%2FSPAN%3E%3CA%20href%3D%22mailto%3Aisaac%40isaacdchangmail.onmicrosoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eisaac%40isaacdchangmail.onmicrosoft.com%3C%2FA%3E%3CSPAN%3E).%20The%20request%20from%26nbsp%3B%3C%2FSPAN%3E%2Fv1.0%2Fme%2FjoinedTeams%3CSPAN%3Ereturned%20200%2C%20so%20authorization%20worked%20and%20the%20operation%20is%20not%20forbidden.%20But%20the%20list%20of%20teams%20is%20empty%20despite%20being%20in%20a%20team.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EOnce%20again%2C%20appreciate%20the%20patience%20and%20apologize%20for%20any%20obvious%20mistakes.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F112398i8F6CD8D67E6D8DDA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20960px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F112399i44A64116969754F5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture2.PNG%22%20title%3D%22Capture2.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-539381%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-539381%22%20slang%3D%22en-US%22%3E%3CP%3EWell%20this%20one%20does%20look%20better%2C%20however%20I'm%20not%20sure%20why%20it's%20not%20returning%20you%20as%20member.%20Can%20you%20see%20the%20user%20as%20member%20when%20using%20the%20Get-UnifiedGroupLinks%20cmdlet%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-542625%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-542625%22%20slang%3D%22en-US%22%3E%3CP%3ESorry%20have%20limited%20powershell%20experience%2C%20will%20try%20the%20cmdlet%20when%20I%20get%20the%20chance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%2Fgroups%20returns%20the%20group%20%22test%20group%22%20that%20I%20created.%20id%3A%20c947a221-4422-41be-8f95-e837638311f5%3CBR%20%2F%3E%2Fgroups%2Fc947a221-4422-41be-8f95-e837638311f5%2Fmembers%20returns%20an%20empty%20list%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20this%20normal%20behavior%3F%20I%20think%20myself%20or%20some%20of%20the%20docs%20might%20be%20conflating%20groups%20and%20teams%2C%20or%20have%20multiple%20definitions%20of%20both.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMS%20account%20isaac.d.chan%40gmail.com%20is%20the%20main%20tenant%20of%20this%20Azure%2C%20created%20the%20org%20and%20the%20team.%20Could%20that%20possibly%20be%20affecting%20the%20results%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-542733%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-542733%22%20slang%3D%22en-US%22%3E%3CP%3EShouldn't%20be%20the%20case%2C%20but%20that's%20why%20I%20wanted%20you%20to%20double-check%20with%20the%20Get-UnifiedGroupLinks%20cmdlet%2C%20just%20to%20make%20sure%20that%20either%20ExODS%20or%20Azure%20AD%20has%20a%20knowledge%20of%20the%20members%20of%20this%20group.%20Just%20curious%2C%20is%20this%20a%20%22free%22%20Teams%20environment%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-542812%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-542812%22%20slang%3D%22en-US%22%3E%3CP%3EYes%20I%20am%20testing%20using%20a%20free%20Teams%20environment.%20Would%20that%20affect%20which%20requests%20work%20or%20the%20visibility%20of%20certain%20attributes%3F%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-544771%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-544771%22%20slang%3D%22en-US%22%3E%3CP%3EThat's%20probably%20it%20then%2C%20the%20Free%20environments%20are%20way%20too%20restricted.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-550768%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20find%20teams%20or%20group%20using%20GRAPH%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-550768%22%20slang%3D%22en-US%22%3E%3CP%3EThat's%20unfortunate.%20Especially%20frustrated%20that%20the%20response%20isn't%20more%20informative.%20Should%20tell%20the%20user%20that%20the%20request%20is%20not%20authorized%20rather%20than%20just%20returning%20an%20empty%20list.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAppreciate%20the%20help%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E.%20Will%20hopefully%20be%20able%20to%20reciprocate%20in%20the%20future.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Isaac_Chan
Occasional Contributor

Happy Friday. End goal is to fetch all members of a team.

 

/v1.0/me/joinedTeams - returns a 'resource does not exist'

/v1.0/me - returns a suspiciously sparse user profile

Capture.PNG

I then manually extracted the team_id from the team's shareable link and tried

/v3/conversations/fc5b01dd-15e1-4102-8b18-12863e77022f/members - returns an 'Authorization has been denied'

 

I used the same email for the requests and Teams. Is it possible it's being treated as two emails hence the disconnect? I could be making an obvious mistake and appreciate any help.

12 Replies
Have you properly logged in to the graph explorer with your account prior to running these??

@adam deltinger is right here, it seems that you are running these in the context of a Guest user. Make sure you are using the correct account, as Guest users have very limited set of operations they can run against the Graph.

@Vasil Michev I've been making these requests through Postman. Do they have to be done through Graph Explorer?

 

Additionally, I was planning on eventually using django requests to automate the updating our teams db. Any hope?

@Vasil Michev UPDATE

 

Tried running in GRAPH Explorer to the same result resource not found. I don't think it's a permissions error either. The email I logged in to GRAPH with is definitely part of a Team.

Postman or Graph doesn't matter here, that's just the client issuing the request. What matters is that you are running it in the context of a Guest user, not a full-fledged tenant user. Guests are limited in what they can see/do via Graph or any other endpoints.

@Vasil Michev Using an Azure AD account (isaac@isaacdchangmail.onmicrosoft.com). The request from /v1.0/me/joinedTeamsreturned 200, so authorization worked and the operation is not forbidden. But the list of teams is empty despite being in a team.

 

Once again, appreciate the patience and apologize for any obvious mistakes.

Capture.PNGCapture2.PNG

Well this one does look better, however I'm not sure why it's not returning you as member. Can you see the user as member when using the Get-UnifiedGroupLinks cmdlet?

Sorry have limited powershell experience, will try the cmdlet when I get the chance.

 

/groups returns the group "test group" that I created. id: c947a221-4422-41be-8f95-e837638311f5
/groups/c947a221-4422-41be-8f95-e837638311f5/members returns an empty list

 

Is this normal behavior? I think myself or some of the docs might be conflating groups and teams, or have multiple definitions of both.

 

MS account isaac.d.chan@gmail.com is the main tenant of this Azure, created the org and the team. Could that possibly be affecting the results?

Shouldn't be the case, but that's why I wanted you to double-check with the Get-UnifiedGroupLinks cmdlet, just to make sure that either ExODS or Azure AD has a knowledge of the members of this group. Just curious, is this a "free" Teams environment?

Yes I am testing using a free Teams environment. Would that affect which requests work or the visibility of certain attributes?


That's probably it then, the Free environments are way too restricted.

That's unfortunate. Especially frustrated that the response isn't more informative. Should tell the user that the request is not authorized rather than just returning an empty list.

 

Appreciate the help @Vasil Michev. Will hopefully be able to reciprocate in the future.