Read Teams channels using Graph API as a b2b or guest user

%3CLINGO-SUB%20id%3D%22lingo-sub-1502502%22%20slang%3D%22en-US%22%3ERead%20Teams%20channels%20using%20Graph%20API%20as%20a%20b2b%20or%20guest%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1502502%22%20slang%3D%22en-US%22%3E%3CP%3EUsing%20the%20following%20Graph%20API%20endpoint%2C%20as%20a%20guest%20user%20I%20am%20unable%20to%20see%20which%20teams%20I%20am%20a%20part%20of.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EGET%20%2Fv1.0%2Fme%2FjoinedTeams%20HTTP%2F1.1%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20receive%20this%20response%20from%20the%20API%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%0A%20%20%22error%22%3A%20%7B%0A%20%20%20%20%22code%22%3A%20%22Forbidden%22%2C%0A%20%20%20%20%22message%22%3A%20%22User%20Login.%20Teams%20is%20disabled%20for%20your%20tenant.%22%2C%0A%20%20%20%20%22innerError%22%3A%20%7B%0A%20%20%20%20%20%20%22date%22%3A%20%222020-07-02T06%3A38%3A56%22%2C%0A%20%20%20%20%20%20%22request-id%22%3A%20%22d632e493-7ffb-4260-878f-4ac931f0936b%22%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20organization%20for%20the%20user%20in%20question%20does%20have%20Teams%20enabled%2C%20and%20I%20am%20able%20to%20access%20Teams%20externally%20through%20the%20app.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20checked%20the%20JWT%20associated%20with%20the%20Graph%20API%20request%2C%20and%20tenant%20ID%20or%20tid%20matches%20the%20organization%20ID%20where%20I%20am%20a%20guest.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1502502%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGuest%20Access%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1579033%22%20slang%3D%22en-US%22%3ERe%3A%20Read%20Teams%20channels%20using%20Graph%20API%20as%20a%20b2b%20or%20guest%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1579033%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F716387%22%20target%3D%22_blank%22%3E%40gregsmith_ie%3C%2FA%3E%2C%26nbsp%3BGuest%20users%20may%20not%20be%20able%20to%20access%20these%20api%20endpoints.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

Using the following Graph API endpoint, as a guest user I am unable to see which teams I am a part of.

 

GET /v1.0/me/joinedTeams HTTP/1.1

 

I receive this response from the API:

 

 

{
  "error": {
    "code": "Forbidden",
    "message": "User Login. Teams is disabled for your tenant.",
    "innerError": {
      "date": "2020-07-02T06:38:56",
      "request-id": "d632e493-7ffb-4260-878f-4ac931f0936b"
    }
  }
}

 

 

 

The organization for the user in question does have Teams enabled, and I am able to access Teams externally through the app.

 

I have checked the JWT associated with the Graph API request, and tenant ID or tid matches the organization ID where I am a guest.

 

I have a solution working for a non-guest account (an account that belongs to the tenant).

 

Is what I am trying to achieve possible using the current version Graph API?

1 Reply
Highlighted

@gregsmith_ie, Guest users may not be able to access these api endpoints.