From d7015d59c5020dba45d677182b8192a675e97949 Mon Sep 17 00:00:00 2001 From: Arthur Jungmann Date: Fri, 8 Nov 2024 00:03:54 +0100 Subject: [PATCH] Fixed Bug: Changed parameter with null value to correct paramater to get group for provisioning and removed Files Tab trom Template --- .../PnP.Framework/Provisioning/ObjectHandlers/ObjectTeams.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectTeams.cs b/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectTeams.cs index dfbbc7895..7d77fb7c6 100644 --- a/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectTeams.cs +++ b/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectTeams.cs @@ -67,7 +67,7 @@ private static JToken CreateTeamFromProvisioningSchema(PnPMonitoredScope scope, // If security is configured, add the members and owners defined in the template to the Team if (team.Security != null) { - if (!SetGroupSecurity(scope, parser, team, teamId, accessToken, graphBaseUri)) return null; + if (!SetGroupSecurity(scope, parser, team, parsedGroupId, accessToken, graphBaseUri)) return null; } // Then promote the Group into a Team or update it, if it already exists. Patching a team doesn't return an ID, so use the parsedGroupId directly (teamId and groupId are the same). @@ -1950,6 +1950,9 @@ private static List GetTeamChannelTabs(ExtractConfiguration configurati var teamTabs = teamTabsJObject.ToObject(); foreach (var tab in teamTabs) { + if (tab.Configuration != null && tab.ID == "3ed5b337-c2c9-4d5d-b7b4-84ff09a8fc1c") { + continue; + } if (tab.Configuration != null && string.IsNullOrEmpty(tab.Configuration.ContentUrl)) { tab.Configuration = null;