Value for isArchived for Joined Teams is changing every now and then

Petar Dimitrov 1 Reputation point
2022-01-14T16:31:58.143+00:00

When querying for my joined teams in Microsoft Teams, I get inconsistent values for the isArchived property

Steps to reproduce the behavior:

  1. Create a new public team in Microsoft Teams
  2. Archive that team
  3. Query the joined teams in the Graph Explorer (https://developer.microsoft.com/en-us/graph/graph-explorer?request=me%2FjoinedTeams&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com) every few minutes and you will notice that the value of the isArchived property switches between true and false even without activating/archiving the team again

The value for isArchived needs to be consistent if the team is not being activated/archived all the time

Here you can see the team is added to archived already:
165213-image.png

Initially the isArchived value is still false. My assumption for this not being changed instantly is that there is some caching involved, so this is fine for now
165183-image.png

A few minutes later, I send that query again, and I get the result I expect to see for the isArchived property:
165214-image.png

However, after a few minutes, when sending the same query, I get the wrong value for isArchived again:
165215-image.png

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,120 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,019 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 105.8K Reputation points MVP
    2022-01-14T16:52:08.633+00:00

    You should not be using this value as reported via a /joinedTeams query, use a separate request against each individual team. As noted in the documentation: https://learn.microsoft.com/en-us/graph/api/user-list-joinedteams?view=graph-rest-1.0&tabs=http#response

    Note

    Currently, this API call returns only the id, displayName, and description properties of a team. To get all properties, use the Get team operation. For details, see known issues.

    Values for other properties should usually be null, but as you've observed some are "randomly" populated.


  2. Petar Dimitrov 1 Reputation point
    2022-03-10T07:37:53.497+00:00

    Is this going to be looked into? Where could I keep track of changes in the Microsoft Graph API?

    0 comments No comments

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.