diff --git a/lib/file_wopi.php b/lib/file_wopi.php
--- a/lib/file_wopi.php
+++ b/lib/file_wopi.php
@@ -67,7 +67,7 @@
             // Create Chwala session for use as WOPI access_token
             // This session will have access to this one document session only
             $keys = array('env', 'user_id', 'user', 'username', 'password',
-                'storage_host', 'storage_port', 'storage_ssl');
+                'storage_host', 'storage_port', 'storage_ssl', 'user_roledns');
 
             $data = array_intersect_key($_SESSION, array_flip($keys));
             $data['document_session'] = $session_id;