Create some groups in a site.
Add a resource and assign the resource to some groups, it will display the new component.
Edit the resource and change the groups.
Switch between visibility options, from groups to site.
Provide a better UI to assign groups to a resource, if possible use the bootstrap multiselect component introduced in SAK-33984.