This page is for administrators who manage groups for an organization. To manage groups for your own account, visit Google Groups help.
As an administrator, you can restrict internal groups or accounts from joining another of your organizationâs groups by using a member restriction setting at the single-group level. You can also use this setting to let certain members from external organizations join one of your organizationâs groups.
Important: Only groups that someone from inside your organization createdânot external groups, which are created outside the organizationâcan ever join a member-restricted group.
Use the API
Any group owner or manager with access to the API can use it for restricting membership. These users canât make restrictions more lenient or remove them, and only admins can reverse any changes that such users make.
Use member type
Allow or exclude membership using any combination of these member categories:
- Group
- User account, which a person uses
- Service account, which an application or virtual machine uses
For example, you can allow users and service accounts into your group, but not other groups.
Also, if you allow groups as a member type, you can place or nest a group within another group. Turn off nesting by disallowing the addition of groups inside other groups.
Considerations
- If you add member restrictions to a group, then you canât directly add members that violate those restrictions. (You might do so indirectly, through nesting.)
- While child groups may have more restrictions than their parent groups do, they must at least have the restrictions that the parent has.
Use customer ID
While you canât restrict individual users, you can restrict further, beyond member type. Based on the customer ID that Google gives every organization, you can exclude certain external member types while allowing others. As examples, you might allow:
- Only internal members
- External user accounts and only internal service accounts and groups
- External service accounts and only internal users and groups.
Does a group already have restrictions?
Check the Security settings (beta) card on the group details page. A code underneath the Member restriction heading indicates that restrictions are in place. Because these restrictions are enforced when someone adds members to a group, adding members triggers a check on the evaluation state. Check the Evaluation state column for the current status of those restrictions.
Evaluation state | Meaning |
---|---|
Compliant | The group only contains members that fit the current restriction criteria. |
Non compliant | The group contains members that do not fit the current restriction criteria, and other such members may be added to groups within the group. |
Forward compliant | The group contains members that do not fit the current restriction criteria, but no other such members may be added to the group. |
Evaluating | The system is still figuring out your evaluation state. |
Considerations
- Removing restrictions from a nested child group makes the parent group noncompliant.
- You can only directly add a compliant group or member. However, after someone adds a group or member, it can later become noncompliant.
- Even if a parent group has noncompliant child groups nested inside of it, the parent can still be compliant.
Create a group with member restrictions
-
Sign in to your Google Admin console.
Sign in using your administrator account (does not end in @gmail.com).
-
In the Admin console, go to Menu DirectoryGroups.
- Click Create group.
- Enter the group infoclick Next.
- Choose your access settingsclick Next.
- Select Restrict membership.
- Add conditions to the group security settings.
As you build the query, you see the code. - (Optional) To change the query, modify the options youâve chosen or the code at the bottom.
- Click Create group.
The Security settings (beta) card on the group details page displays the query that you built and the restriction status.
Manage restrictions for an existing group
Putting member restrictions on a group means that no one can add noncompliant members to the group. The restrictions donât kick any noncompliant members out of the group automatically. However, you can go to your member list and remove accounts from the group manually.
-
Sign in to your Google Admin console.
Sign in using your administrator account (does not end in @gmail.com).
-
In the Admin console, go to Menu DirectoryGroups.
- Click on a groupgo to the group details page.
- Click the Security settings (beta) cardSecurity settings to expand them.
- Choose an option:
- Edit the query using the query builder or the code. (Point to the tooltip for details about the code.)
- Click No restrictions to clear your queries, removing member restrictions.
- Click Save.
The Restriction status could be evaluating for anywhere from a few seconds to 24 hours.
Add & remove members from groups with restrictions
- Attempts to add a noncompliant member prompt an error message. Add or invite users the usual way. For details, go to Add or invite users to a group.
- Remove such members as you remove any other member. For details, go to Remove or ban users from a group.