How to Analyze that how group were previously assign to user?

Udhayakumar_30
Tera Contributor

Hi,
There is a scenario where previously when user are created ,some Groups like eg."Candidate" are enabled to users ,But now they are not enabled. What are possible steps involved to analyze this scenario.

2 REPLIES 2

AakashGarg1678
Kilo Guru

Hi @Udhayakumar_30,

Hope you are doing well.

 

I tried to understand your ask or requirement is that you want to find a place from where the mapping of user and group got created as soon as new user get created. For this, I can give you few suggestions that you can try to do it on your instance to get your query resolved in one go.

 

Proposed Suggestions

There can be few solutions written down below: -

  1. Check if there is any "Business Rule" written on the User Table to create a mapping of User and Group - that is assigning the user to the specific group and the table where the mapping of the users and group exists is "Group Members (sys_user_grmember)".
  2. Check if there is any "On-Submit Client Script and Script Include" written on the User table to do the mapping of these two (Users and Groups).
  3. If above 2 solutions will not work, there is a high chance that someone has assigned the group to users created manually.

 

If you find this answer/solution/suggestion as helpful to your question asked or meet with your requirement, you can mark this solution/answer/suggestion as helpful, and correct.

 

Thanks 🙂

Aakash Garg

ServiceNow Developer

Akshay Gupta2
Kilo Sage

Hi @Udhayakumar_30,

I understand your concern. Here are some steps you can take to troubleshoot this issue:

1. Review Business Rules: It's possible that a Business Rule is assigning new users to the group during insert or update operations. Check if any script includes are invoked within these Business Rules.

2. Assignment Rules: Once the criteria are met, Assignment Rules determine the assignment group and user to whom the record should be assigned.

 

3. Investigate Related Records: Consider scenarios where user assignments are dependent on related records. For instance, if User A from company XYZ is only assigned a group, there might be Business Rules on the Company Table or other related tables affecting this.

 

4. Examine Workflows and Flows: Check if there are any workflows or flows configured to trigger on record creation. It's possible that such processes are automatically assigning users to groups.

Start with these steps and let me know if they help resolve the issue.

Best regards,
Akshay