Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
User is able to see a list of records from the groups that user is a part of and also the groups which are parent to the group. - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • User is able to see a list of records from the groups that user is a part of and also the groups which are parent to the group.
KB0681349

User is able to see a list of records from the groups that user is a part of and also the groups which are parent to the group.


4707 Views Last updated : Jul 10, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

User is able to see a list of records from the groups that user is a part of and also the groups which are parent to the group.

Cause

This is an expected behavior. It happens when the filter condition is(dynamic) - One of my groups returns all the groups of the user and also the parent groups associated with these groups.

The dynamic filter is returning all the groups that a user is part of and also the parents of these groups. 

 

Resolution

  • One way to achieve the solution could be to write a custom function that returns only the groups(child) that a user is part of.
  • This function can then be used in the 'Script' field of One of my groups dynamic filter definition.
  • While writing the custom script you can make use of the 'sys_user_grmember' table which has relationship between a user and all the active groups he is part of.
  • Please use the below articles for reference:
  • Changing or Creating a new getMyGroups() function
  • Advanced 'getMyGroups' function  ( NOTE: The scripts are examples to achieve the custom requirements. The examples shown in community links are not owned or tested by ServiceNow)

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.