New User Role assignment automatically

Katie A
Mega Guru

When our system receives an email from any email address, a new user account is created in the local ServiceNow database. We do not have any trusted domains specified in the system property glide.user.trusted_domain currently.

New users are automatically assigned the generic "user" role when their account is created.

Where can I locate the script that is performing the automatic role assignment when a new user is created? I want to make sure that new users are not automatically assigned to that role.

Thank you!

1 ACCEPTED SOLUTION

Uncle Rob
Kilo Patron

Search business rules or script includes where script contains "sys_user_has_role".   That's the table that stores the relationship between a role and a user.



Alternatively, the role could be granted automatically because the user is being assigned to a group.   If that's the case you're business rules and script includes aren't going to yield any results.   Search where script contains "sys_user_grmember", which is the table that stores the relationship between a group and a user.


View solution in original post

1 REPLY 1

Uncle Rob
Kilo Patron

Search business rules or script includes where script contains "sys_user_has_role".   That's the table that stores the relationship between a role and a user.



Alternatively, the role could be granted automatically because the user is being assigned to a group.   If that's the case you're business rules and script includes aren't going to yield any results.   Search where script contains "sys_user_grmember", which is the table that stores the relationship between a group and a user.