diff --git a/src/Entity/Group.php b/src/Entity/Group.php
index 0bbea96..9ac79b6 100644
--- a/src/Entity/Group.php
+++ b/src/Entity/Group.php
@@ -354,4 +354,14 @@ class Group extends ContentEntityBase implements GroupInterface {
     }
   }
 
+  /**
+   * {@inheritdoc}
+   *
+   * @todo Replace by group_membership.roles.permissions in https://www.drupal.org/node/2906082.
+   */
+  public function getCacheContexts() {
+    $this->cacheContexts[] = 'user';
+    return $this->cacheContexts;
+  }
+
 }
diff --git a/src/Entity/GroupContent.php b/src/Entity/GroupContent.php
index 645a804..38dd5c1 100644
--- a/src/Entity/GroupContent.php
+++ b/src/Entity/GroupContent.php
@@ -384,4 +384,14 @@ class GroupContent extends ContentEntityBase implements GroupContentInterface {
     return [];
   }
 
+  /**
+   * {@inheritdoc}
+   *
+   * @todo Replace by group_membership.roles.permissions in https://www.drupal.org/node/2906082.
+   */
+  public function getCacheContexts() {
+    $this->cacheContexts[] = 'user';
+    return $this->cacheContexts;
+  }
+
 }
