diff --git a/modules/commons/commons_documents/commons_documents.install b/modules/commons/commons_documents/commons_documents.install
index 3b00af8..3e1323c 100644
--- a/modules/commons/commons_documents/commons_documents.install
+++ b/modules/commons/commons_documents/commons_documents.install
@@ -76,3 +76,41 @@ function commons_documents_update_7006() {
   features_revert($revert);
   return array();
 }
+
+/**
+ * Set document-related default permissions in existing groups when the content-type is enabled.
+ */
+function commons_documents_update_7007() {
+  $perms = array
+    (
+      'administrator member' => array
+      (
+        'create document content' => 1,
+        'update own document content' => 1,
+        'update any document content' => 1,
+        'delete own document content' => 1,
+        'delete any document content' => 1,
+       ),
+      'member' => array
+      (
+        'create document content' => 1,
+        'update own document content' => 1,
+        'delete own document content' => 1,
+       ),
+      'non-member' => array(),
+     );
+
+  foreach( og_get_all_group('node') as $gid) {
+    //og_get_all_group is returning  a few non-groups for some reason, so doublecheck
+    if ($group = node_load($gid)) {
+      if ($group->type === 'group') {
+	// get the specific rids for this gid
+	$gid_rids = og_roles('node','group',$gid);
+	foreach ($gid_rids as $rid => $role_name) {
+	  og_role_change_permissions($rid, $perms[$role_name]);
+	}
+      }
+    }
+  }
+  return array();
+}
