In mobile UI client scripts, current roles are unavailable on the g_user object

Steps to Reproduce

  1. Create a client script that checks roles on g_user, for example:

    if ( g_user.hasRole('admin')) {
      alert('Hello Admin');

  2. Log in to the mobile app as an admin.
    Note that the message is not displayed.


There is no known workaround for this issue.  If you are able to upgrade, review the Fixed In field in that article to see which versions have a permanent fix. To receive notifications when more information is available, subscribe to this Known Error article by clicking the Subscribe button at the top right of the article.

Related Problem: PRB709403

Seen In

Geneva Patch 6 Hot Fix 2
Geneva Patch 7
Helsinki Patch 0 Hot Fix 1
Helsinki Patch 1 Hot Fix 1
Helsinki Patch 2 Hot Fix 2
Helsinki Patch 4

Fixed In

Helsinki Patch 8
Istanbul Patch 5

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:32:33