adding roles to document session state