Replaced xmldb:get-user-groups() (as it is deprecated) with
sm:get-user-groups().