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:
- cache-control: private, s-maxage=0
- content-length: 1233
- content-security-policy: frame-ancestors 'none';
- content-type: text/html
- date: Tue, 06 Nov 2018 08:28:15 GMT
- p3p: CP="CAO DSP COR ADMa DEV CONi TELi CUR PSA PSD TAI IVDi OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR"
- status: 403
- strict-transport-security: max-age=31536000; includeSubDomains
- x-aspnet-version: 4.0.30319
- x-aspnetmvc-version: 5.1
- x-content-type-options: nosniff
- x-correlationid: aeaf0deb-4cab-4c67-a406-6ec6eb527ad0
- x-frame-options: Deny
- x-msedge-ref: Ref A: 368E038C7FA5468CA7805EB1C708B607 Ref B: AMS04EDGE0210 Ref C: 2018-11-06T08:28:15Z
- x-officecluster: neu-000.tasks.osi.office.net
- x-officefe: TodoFrontEndBox_IN_6
- x-officeversion: 16.0.11026.35000
- x-powered-by: ASP.NET
- x-proxycluster: neu-000.tasks.osi.office.net
- x-proxyfe: TodoFrontEndBox_IN_6
- x-proxyversion: 16.0.11026.35000
- x-usersessionid: ece4e392-c1a8-4498-ae8d-aaf8ef99cf27