Reputation: 104
We have the following bug in Microsoft Teams:
Owners added via the Graph API to a newly created group cannot create additional APPs like Planner in Microsoft Teams.
We use the following graph endpoint to add owners to the group after the group has been created. The graph call is authentificated using an azure ad service principal (azure ad application) using a certificate.
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/group_post_owners
The owners are added approximately 20 minutes after creation of the group as stated in this article (Wait for 15 minutes + 5 Minutes PNP Template):
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/team_put_teams
If the group was created less than 15 minutes ago, it's possible for the Create team call to fail with a 404 error code due to replication delays. The recommended pattern is to retry the Create team call three times, with a 10 second delay between calls.
The problem doesn't occur anymore if the user is completely deleted from owers of the group and then added again via the frontend (no matter if SharePoint, Teams or Outlook).
We can reproduce the problem at any time.
Error message
The following error occurs when a plan is to be created via the group:
e2141e79-10fe-4bcc-91dc-ff1990ad86f7
Date and Time: 05.11.2018
08:34:46 Planner Version: 16.0.11026.35000
Additional Data:
TenantId: 1ca8bd94-3c97-4fc6-8955-bad266b43f0b
OwnerId: 1ca8bd94-3c97-4fc6-8955-bad266b43f0b
GroupId: 25fcf2d5-cecc-44b0-bd03-d6719389e446
Response Headers:
Upvotes: 1
Views: 288
Reputation: 136
I'm guessing you're an owner but not a member. Planner doesn't support that -- add yourself to the members collection as well.
Upvotes: 2