diff --git a/src/python/dm/common/service/auth/authorizationPrincipalRetriever.py b/src/python/dm/common/service/auth/authorizationPrincipalRetriever.py
index a7df58264b33208b498c9ef66ad5205842844e4a..139a02d812fc669ce40a6130bb137cddbdf8b083 100755
--- a/src/python/dm/common/service/auth/authorizationPrincipalRetriever.py
+++ b/src/python/dm/common/service/auth/authorizationPrincipalRetriever.py
@@ -25,7 +25,7 @@ class AuthorizationPrincipalRetriever:
         userInfo = principal.getUserInfo()
         if userInfo is None:
             return
-        for userSystemRoleName in user.get('userSystemRoleNameList', []):
+        for userSystemRoleName in userInfo.get('userSystemRoleNameList', []):
             if userSystemRoleName == self.adminRoleName:
                 principal.setRole(dmRole.DM_ADMIN_ROLE)