Hi Guys,
I tried replacing this method from Xrm.Utility.getGlobalContext().userSettings.securityRoles to Xrm.Utility.getGlobalContext().userSettings.roles, however I found this new method Xrm.Utility.getGlobalContext().userSettings.roles is just available in the Unified Interface, it would occur exception in the web client.
I'm not sure if you're in the same situation.
Thanks,
Dejun