From e9fd7a05768b58fb8b4c8d61445789b35dcd14c7 Mon Sep 17 00:00:00 2001 From: Christian Zuellig Date: Fri, 16 Jul 2021 16:37:54 +0200 Subject: [PATCH] Fix TokenParser always returns original associated-group-names event when renamed by ObjectSiteSecurity --- .../ObjectHandlers/TokenDefinitions/AssociatedGroupToken.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/PnP.Framework/Provisioning/ObjectHandlers/TokenDefinitions/AssociatedGroupToken.cs b/src/lib/PnP.Framework/Provisioning/ObjectHandlers/TokenDefinitions/AssociatedGroupToken.cs index 846750ba0..c7f5854d8 100644 --- a/src/lib/PnP.Framework/Provisioning/ObjectHandlers/TokenDefinitions/AssociatedGroupToken.cs +++ b/src/lib/PnP.Framework/Provisioning/ObjectHandlers/TokenDefinitions/AssociatedGroupToken.cs @@ -26,6 +26,7 @@ public AssociatedGroupToken(Web web, AssociatedGroupType groupType) : base(web, $"{{associated{groupType.ToString().TrimEnd('s')}group}}") { _groupType = groupType; + IsCacheable = false; //since TokenParser does not Update TokenDictionary in BuildTokenCache if IsCacheable=true and therefore not get the new group names after ObjectSiteSecurity renamed groups } internal AssociatedGroupType GroupType { get => _groupType; set => _groupType = value; }