List JoinedTeams fails when using email rather that user-id for a particular user

Andrew Omondi 256 Reputation points Microsoft Employee
2023-08-30T07:16:12.62+00:00

Using the email rather that user-id fails for a particular user when trying to getting a users joined teams

We are able to replicate the issue in Graph explorer for the endpoint https://graph.microsoft.com/v1.0/users/{user-id}/joinedTeams

Code: NotFound

Message: Failed to execute MsGraph backend request GetUserGroupsS2SRequest. Workload MsGraph_DirectoryServices. Request Url: https://graph.microsoft.com/edu/users/{id}/memberOf/$/microsoft.graph.group?$filter=groupTypes/any(c:c+eq+'Unified')&$top=999, Request Method: GET, Response Status Code: NotFound, Response Headers: Strict-Transport-Security: max-age=31536000

Is there a particular reason this would fail for user while using the user-id works?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,510 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. msft-gu 1,355 Reputation points
    2023-08-31T23:39:12.0133333+00:00

    Hi Andrew,

    Good day and thank you for your question. I reproduced it on my end using the following endpoint below on Graph Explorer and did not receive any error:

    Can I please know the following:

    • Does it only happen on specific user?
    • Does it work when using the user principal name?

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.