adding userid and groupid to viewer docs