@Nullable
    public SharedGroupVisibility getSharedWith() {
        final String value = getProperties().get(SHARED_ROSTER_SHOW_IN_ROSTER_PROPERTY_KEY);
        if (value == null) {
            return null;
        }
        return switch (value) {
            case "nobody"    -> SharedGroupVisibility.nobody;
            case "everybody" -> SharedGroupVisibility.everybody;
            case "onlyGroup" -> SharedGroupVisibility.usersOfGroups;
            default -> SharedGroupVisibility.nobody;
        };
    }
Defines to which entities this group is shared, using the contact list group sharing. This method can return
'nobody', which differs from a 'null' value, which is returned when contact list sharing has not yet been
configured.

When 'usersOfGroups' is returned, {@link #getSharedWithUsersInGroupNames()} should be used to determine which to
which groups this group is shared.

@return To which users this group is shared with.
xmppserver/src/main/java/org/jivesoftware/openfire/group/Group.java