Activate a class team through Graph API with a registered AAAD application

Benjamin Féron 10 Reputation points
2023-04-12T15:46:09.7633333+00:00

Hi,

I've an Azure Application registered with some API permissions.

With Graph API and a valid token for this application, I can easily create teams, add owners, members, etc.

Still with Graph API, I need to activate class teams because a class team is not activated by default to allow the teacher to prepare content before opening it to students.

From what I understood, team activating consists of using the PATCH method on the team with the following JSON body :

{
  "isMembershipLimitedToOwners": false
}

It works fine when sending request with an administrative AAD account : isMembershipLimitedToOwners attribute is updated and students are automatically added to the team.

However, it doesn't work when calling API with AAD application token : isMembershipLimitedToOwners attribute is correctly updated too but students are not actually added to the team and on Teams UI, a warning is shown :

Sélection_058

If I click on "Retry", students are added to team...

It seems that (asynchronous ?) background operations are not correctly executed.

I tried to add some rôles to registered application but with no success.

Can anybody help me ?

Thanks

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Adriana Jacoto Unger 0 Reputation points
    2025-02-19T18:23:39.3933333+00:00

    Did somebody solve this??

    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.