38 views

Symptoms


g_user.hasRole is returning false if users have external roles. If user has snc_external role and any other internal role like 'itil' role g_user.hasRole for itil will return even though user has this role.

Release


ALL

Cause


If the user has the snc_external role, hasRoles() method returns false because the instance considers external users to be without a role.

Resolution


This behavior is expected. snc_external is a special role which is used to indicate a user is an external user. getRole() for an external user always return false since by definition an external user has no role on an instance.  

Additional Information


Here is the documentation about it: The hasRoles() method 

Article Information

Last Updated:2018-09-06 16:09:15
Published:2018-09-06