gs.getUser().hasRoles(); returns false for users with only snc_internal role

Feddy
Kilo Sage

Hi Team , 

gs.getUser().hasRoles(); returns false for users with only snc_internal role.
I understood that its a baseline auto generated role.
Do we have any supported document ?

Thanks, 
Feddy

1 ACCEPTED SOLUTION

asifnoor
Kilo Patron

Hi,

If yo8u are looking for documentation on auto creation of snc_internal role, then here it is. It gets added by Explicit Roles plugin.

https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/contextual-security/...

Mark the comment as a correct answer and also helpful if this has helped to solve the problem.

View solution in original post

2 REPLIES 2

asifnoor
Kilo Patron

Hi,

If yo8u are looking for documentation on auto creation of snc_internal role, then here it is. It gets added by Explicit Roles plugin.

https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/contextual-security/...

Mark the comment as a correct answer and also helpful if this has helped to solve the problem.

Thanks. 
I could see why 'gs.getUser().hasRoles();' is printing false from that doc.