Active Roles

How to restrict the groups created by Group Family

I created a Group Family based on office location and only users with a certain job title.  It works great but it also create groups with no users matching.  I would like to restrict Group Family to only create groups when there's at least one member.

  • In the group family wizard, you can set a filter that looks only for users where Job Title (or whatever attribute you like) is populated.

  • I see two options:
    1 - Restrict group family to create groups only if field Office location is below 500
    2 - Restrict group family to create groups only if there's a least a member

    But I don't know how to script that. Right now it create groups even if there's no matching users
  • "Right now it create groups even if there's no matching users"

    I don't understand how this is possible? Can you provide some more details on the criteria / rules you have setup for the family creation?

    It has always been my experience that it will only create a group when it finds a particular value in a user attribute that has been selected for grouping - so if for example, there's a user with 'Finance' in the Department, it will create that. But it sounds like what you are saying is that in your case, it will create a group for 'Marketing' even though there is no user with that for their Department field? Am I understanding your scenario correctly?
  • For a particular OU, it create groups based on office location and populate users with a certain job title. If there's no matching users for Office location it will create a group "groupName_officeLocation" with no users inside.
  • If you are grabbing the Office location from User objects, then this should never happen. Are you populating the Office location from something else, like a Group or Organizational Unit?

    Perform an Advanced Find and check to see that if there is a User who has the office location which is generated. Maybe this is an issue with Group population.