I suspect most Nextcloud implementations are dedicated to a single group of users, such as a family, a company or a community group. This keeps things simple and if you want to share files (and hopefully at some point other resources) there is support for federation.
After a request to set up some reources for a local Beaver scout colony (see Nextcloud for Activity Planning) I built a second Nextcloud instance for external users and technically it worked well but in practice it turned out they really couldn't be bothered to use it as it meant thinking about what they really wanted to do and actually being open to sharing documents and trusting each other. I also found it a bit messy for me to be having things in two places and after a "use it or lose it" ultimatum I closed it down but retained the server for another group I was helping. Then I got asked for another go as they relised I was actually right all along...
Reasons to have a separate external server
The main reason for a dedicated external users Nextcloud are:
- Complete separation from internal content. Each server can have its own set of appliations if needed, as well as its own users, groups and teams.
- The External server can be fully internet accessible for all applications they wanted to use, while purely internal data could stay safely locked away on a private internal server.
- No possibility of accidentally sharing internal content with external users
- If external uses somehow do something silly, internal content cannot be affected.
Reasons to not bother and have a combined server
From an entirely selfish and personal viewpoint, having files and content in two places is a lot less convenient. While I could have probably got federation working for files, I'd have to ensure any public links were only ever created from the external server and I'd still end up with data and content such as Calendar, Contacts and Deck in two separate locations. I was not getting any additional benefits and it was considerably less friendly for me having two servers. External users didn't have this issue as they only had specific data on the server.
Even the security argument is a false one as you don't need direct access to a system in order to exfiltrate data, and who's to say that any future vulnerability would only be in features that were not available externally? If multinational corporations with dedicated security teams can be taken down then I'm under no illusion than I'd do any better if somebody decided to have a pop at my GeekLab. At least I have offline backups to aid recovery, unlike [names redacted].
Although our internal server was only really used for Calendar and Contact with mimimal use of Files, it was configured to allow remote access to those applications via DAV so it was technically internet accessable. Then Deck was added, and the android App so that got enabled in the proxy rules. Then I started using Files a bit more and then a few occaisions of wanting access to an internal file while I was away and so it ended up with full access to most of the internal applications and the whole point of keeping it restricted became irrelevant.
The final nail in the coffin of the two-server approach was the when I finally got around to upgrading the server to Ubuntu 24.04 (see u24-nextcloud) which was a major reorganisation a complete reinstall and I really couldn't see any need to keep two separate servers with double the overhead for no practical benefit and actually being a hindrance.
The Community Concept
Nextcloud doesn't really have the concept of tenants, and given some of my users would need to be in both tenants that still wouldn't really help. Instead I'm using what I call Communities just to avoid using the terms groups and teams that are already used within Nextcloud.
The Community approach relies on the interplay of Users, Groups and Teams together with some config changes and a clear operational concept of how it works.
A user is normally in only one community, but they can be in many. Each community has:
- A Nextcloud group that contains all the members of the community. They can have additional groups if needed though.
- A Nextcloud user, referred to as the Community Manager, that owns the shared content for the community and may also have group admin rights. This user is not a normal user and is only used for admin purposes.
- A default team that contains all members of the community for apps that prefer teams to groups. Communities can have other teams if needed.
The configuration required to implement Communities is negated by the optional Everyone Group app which creates a group which all users are automatically member of. You must disable Everyone Group if you want to implement communities.
Restrict the System Address Book
By default a Nextcloud user can see all other users, which would defeat the purpose of having separate communities. To prevent that we need to make a couple of administrative changes. These can be version specific so this guide is for Nextcloud 33 and you should test if using with other versions. I'll update this for future releases if it changes.
Go to Administration : Sharing > Privacy settings for sharing

The "Allow account name autocompletion in share dialog and allow access t the system address book" setting is enabled by default and this definitely need to be on. This enables two futher options:
- Restrict account name autocompletion and system address book access to users within the same groups - Tick this
- Restrict account name autocompletion to users based on their phonebook - Do not tick this unless you want users to find others if they have a phone book entry for them with details that match the users profile. I'd leave this off it you really want to enforce separation between groups.
This will only allow you to see other users who are in the same groups as you, and conversely only those users can see you, in share dialogs where you can pick users from a list.
The next set of options allow the restrictions above to be ignored if you know some details of other users (or just get lucky) and type them into the user search box

The "Allow autocompletion to full match when entering the full name (ignoring restrictions like group membership or missing phonebook match" will let you find other people to share content with if you know and type in their full name or optionally any of:
- Their user id
- Their display name
- Their email address.
While other users are not easily findable with the group-based restrictions, if you really want to enforce separation then disable all options and the overall "Allow autocompletion..." option. Even if you allow explicit searching for other users, this will only let you share something with them and won't allow you to see their details.
Note: As of Nextcloud 33.0.2 it appears the options for user id, display name and email address are always enabled regardless of whether they're ticked or not. Ouch.
If you edit something which is shared to other groups by its owner, such as a document or Collective page then members of the other group will see your display name in the edit history, and will know you're also using the same Nextcloud server. They won't be able to see any of your profile data or share documents to you but they will know you exist. This isn't about total anonymity, if you're really not happy about that maybe just use a first name for your display name instead of your full name.
And I wish Nextcloud would shorten some of the option names to make documentation a bit easier. A separate description next to it would still provide the detail as to what it does and maybe even allow extended descriptions via hover. Oh well.
Example Usage
I want to easily share some docs with members of a club I help at. I don't want them to see info about other family members, nor allow my kids to see their info.
I create a community for famliy, and a second community for the club. As a member of both communities I can see family and club info, and share content with them but the rest of my family cannot see any of the club members and don't have access to any of the club content.
One of my kids wants to plan a holiday with some friends and they'd like somewhere to store travel plans.
I create a third community for them and their friends. As a member of both the family and travel Communities they'd see both family and travel content, their friends would not be able to see any info about the rest of our family. I might know the friends details as the overall admin who created their accounts, but of course I wouldn't be able to see their content unless they shared it with me (or, being the evil parent, I gave myself access while setting up the community for them). If one of their friends was also a member of the club, they'd also see club members and content too.
The club members have separate sections and don't want an editorial free-for-all but do want to share ideas and content.
Witin the Club community I create a team for each section and create folders which are shared to all members as read-only and with edit permissions only granted to the appropriate Team. There is also a general shared folder everyone can still write to.
Setting up a new Community
Creating a new Community is simple. The fun part is adding shared content such as a shared Help Collective or a Deck for admin and support requests, especially since Nextcloud changed the rules recently.
1. Create a Community Group
As an administrator go to Accounts : Groups create a new group for all members of your community with a descriptive name. It might be worth prefixing community group names with C- if you're using groups for other purposes as well.

If you're restriciting applications to certain groups then make sure to add your new group to those applications if you want your community to have access to them. if you have the virtual Everyone group active via the Everyone Group app then disable that app before continuing.
2. Create a Community Manager user
Still as an adminitrator, create a new user to be the Community Manager and add to the Community Group, maybe even make them a group admin. This user will own all the resources that will be shared to the community so this should be a dedicated user for this purpose and not a real person. If you're using storage quotas you may want to give this user extra storage too.

The manager shoud also be added to the Support group (see step 5) so they can make some shared support resources available to their group later, if you have any shared support content.
Login as your new Community Manager user and update the profile. If you want to add an email you'll need a dedicated unique email adddress that's not used by any other Nextcloud user on the server. It's also worth removing all the default files and other cruft such as the example photos, example contact, example deck board etc. Your Community Manager user should also have a strong password and preferably also have 2FA active using a TOTP or code generator. The Nextcloud client based 2FA provider is not helpful here since that's for your own personal account.
Check the Contacts app and verify that you cannot see any other users than yourself at this point, apart from the example contact if you've not already deleted them.

I had 14 users defined on this server when this screenshot was captured, the fact that I cannot see any of them while logged in as the the Community Manager is a good sign.
You should also see a team, such as C-Exampe, that represents the group you created and you should be the only member. This is a read-only group and you can't do anything with it in the Contacts app although you can use it most other applications to manage access and permissions.

If you can see other groups and users then check the privacy settings for sharing are set correctly.
3. Create Default Community Team
Most Nextcloud applications work well with both groups and teams, but there's a few exception (at least for Nextcloud 33):
- Contacts: You cannot add content to groups directly from the Contacts app like you can for Teams.
- Collectives: While groups can be added to a collective, the collectives app will create a Team of the same name. If you try to name the collective for your default group then it'll just create a team with that name with (2) on the end.
If you're using the Collectives app and you want to create a collective for all members of your community then it's easier to create a default Communtiy Team now and add your group as a member of it. You can also create all other teams that you want to manage for your community as a whole. For example, while I might have a default team for all club members, I might want a separate team for the management committee or the juniors section.
Even if you're not using Collectives then a default team is still useful as it lets you use Teams as the default for assigning rights and permissions.
You should be logged in as your new Communiity Manager user. Create a team by clicking on the + next to Team in the Contacts app

Give the team a suitable name. I'd suggest something based on the community name itself. If you try to use a name that exists already Nextcloud will add a number to the end but for a new community manager this shouldn't be a problem. Click on Create team when you've chosen the name and you'll then be able to start creating team content.

You can change the team name or add a description via the Edit option and create some initial shared content by clicking on the appropriate button.
- Folder - You can create as many of these as you like and they will be shared to the team with edit permissions and they'll appear in the team immediately. You can then customise in the Files app.
- Collective - You can create a single collective for the team here. You can of course add your community group or individual members to other collectives in the Collective app or by adding them to the associated team for that collective.
- Calendar - You can create one calendar at a time for your team although it doesn't show up on the team itself. If you want to add a seccond just click on onother team and then back onto it again to reload the page. The calendar is shared read-only so you'll need to edit in the Calendar app to allow your team to add events to it. Calendars created this way don't have an associated task list. If you want that you'll need to use the Calendar app to and select New calendar with task list and then use the share options on the newly created calendar to give the team access.
- Deck - Creation from Team is currently broken on Nextcloud 33.0.2 (hopefully fixed soon) so for now you'll need to create in the Deck app and then share to your team.
There may be other apps that let you create resources directly from Contacts : Teams. Otherwise you can create resources in each application individually and add the team (or your community group) to it.
The Options icon allows additional settings for the team setup, for now I'm leaving them all off as some will override the group-based restrictions and allow your team to be visible to all users on the server. I need to go back and check but from memory it was the "Anyone can request membership" and "Visble to Everyone" options that were problematic.
Once you've created your initial shared content click on the +Add button next to Members to add the add the Community Group to the new default team.

The available groups and users - as visible to your community manager user - will be listed. At this point we should just see our default group of course, but if you're adding teams to an existing community you may see more. Just click on the Community Group you created in step 1 to select it then click on Add to [Team Name] when you're ready.

And here we have a completed default team for our community with three shared file folders, a collective and a deck board all owned by the Example Manager (our community manager) and with all users in the C-Example group having member rights in the team.
4. Create and customise other Community Resources
As the Community Manager create other resources for use by the community and share them to either the Community Group, the default Community Team or any other managed teams depending on what the resource supports and who you want to have access to it. In most cases these should be shared with edit acess and usually managmenet rights so community members do thngs like adding tags or lists to a Deck board or edit a Collective.
In additon to the four applications above, I sometimes also create or configure:
- A shared community address book for any 3rd-party contacts.
- Shared community folders with restricted editing rights, typically with read access for the entire community (via the group) but only specified users or teams are allowed to make changes - more to protect against accidental edits than anything else.
- A public page on the default collective and generate a public sharing link for it
I have the email integration active so that is restricted by group under the Apps menu so only my internal users can access it. Most applications can be restricted to only be visible to selected groups but apart from email I'm making all others available to everyone.
Team Folders
These used to be called Group Folders and have a more advanced permissions model. For normal folder shares you set permissions for a single folder which then apply to all documents and subfolders. With the Team Folders app you can add or deny permissions to groups and team for each indivudual sub-folder.
I had a play with it on an earlier Nextcloud release but it didn't really help at the time as I was only sharing a single folder to each community with everyone having full acces was sufficient.
One of my communities is now growing and they'd like most users to be able to read everything, but have some folders where only specific sections should be able to edit. At the moment they have 3 main folders,
- A common folder lets all full members users read and edit
- A shared folder that allows everyone to read, but only members of Team 1 to edit.
- A shared folder that allows everyone to read, but only members of Team 2 to edit
There is also a sub-group who have access to a folder under the Team 2 shared area. As they're not in them main Community Group they don't see any other members in the Community or have access to any other community resources, but the other communty members can see their folder and the Team 2 members can also edit its contents.
If I was using Team Folders I could set all this up with one single shared folder and then assign permissions for the teams to indivudual folders within that. If this community was to grow - it could potentially add another three to five main Teams, then the current approach will start to get unwieldy and Team Folders will probably be the way to go.
The drawback of team folder is they need to be allocated by an admin so this is not something a Community Manager can set up by themselves. There is the Workspace app that builds on this to allow delegated admin of team folders but I've not had any time to play with that yet, but it may solve that particular problem.
5. Add Cross-Community Resources
I also have some general resources that I make available to everyone regardless of the communities they're in.
- A Help Collective, with notes on each of the available applications, suggested ways of working and some general operational info. Everyone has read access, some can edit.
- A Nextcloud Support Deck board for people to raise issues and requests. Everyone can add cards to this.
- I may also add a shared folder with user guides and other useful documents. This would be read-only for all users.
These are all owned by a user called Support Manager who is a member of a group called Support and also the owner of a team called Help. If this is sounding like a Community structure, you'll be right.
The Support Group, or Community, contains all the Community Managers, so they are at least aware of each other. I suspect I can remove them once they've done their initial setup but that's also on my re-testing to-do list. At the moment I'm actually the manager for all the Communites since I hold all the Community Manager credentials so this isn't an issue for me but at some point I'd like to share admin duties with others.
The Help team has the Support Group as a member with admin rights. This allows the Community Managers, who are all members of the Support Group, to add either their Community Group, Default Team or other teams to the to the membership list of the team as either member or moderator to control access rights to the shared resources. The Support Manager cannot do this directly as they're not members of the other Communities so cannot see them.

The Help Collective is configured so that only groups, users and teams added as admin or moderator in the Help team have edit rights so that Community Managers can decide if they want to allow any of their members to contribute updates by making them moderators.
The Support Deck board is shared to the Help team with edit permissions to user can add a card for any issues or suggestions they have, but they can't manage the board. The names of anyone who adds to or edits support resources will be visible to all users, but no other details can be seen. There's nothing I can do to stop this, and for my needs this is trivial. In practice people are not using the Deck, and I suspect they're not reading the Help collective either as they just call me directly when they have a question.

6. Add Community Users
The last stage is to add users to the community. For existing users, just add them to the Community Group. For new users, assigned them to the Community Group when creating their account. This is standard Nextcloud functionality so nothing special here.

Complete
And that's it. You now have a single Nextcloud server with multiple communities who are not aware of each other and with some common shared content. This is not perfect isolation but pretty close and it's helping people collaborate together more easily.