NR-617 : Test and fix media archive because of security changes / refactoring

Fixed the get roles and get rights queries