Add Online Accounts in Ubuntu 23.04: Step-by-Step
In this article
Adding online accounts in Ubuntu 23.04 lets you integrate your Google, Microsoft, or Nextcloud credentials into the system so apps like GNOME Files, Evolution, and the calendar can use them without re-entering passwords. You can do it in about five minutes from Settings. This guide walks you through it and explains why it’s worth doing.
What You'll Need
- Ubuntu 23.04 (Lunar Lobster) installed and running
- An existing account with a supported provider (Google, Microsoft, Nextcloud, or a similar service)
- Your password for that account, and access to a web browser if you use two-factor authentication
- An internet connection
Step-by-Step
- Open Settings from the Activities overview (press the Super key and type “Settings”).
- In the left sidebar, scroll down and click Online Accounts. The exact label may appear as “Online Accounts” or “Accounts” depending on your system language and version.
- You’ll see a list of providers—typically Google, Microsoft, Nextcloud, and others. Click the one you want to add.
- A window will open asking you to sign in. Enter your email or username and password for that account. If you have two-factor authentication enabled, you’ll be prompted to enter a verification code from your phone or authenticator app.
- After signing in, Ubuntu will ask which services you want to enable for that account. Common toggles include Files (to see your cloud files in the file manager), Calendar, Contacts, Mail, and Photos. Turn on the ones you need, and turn off the ones you don’t.
- Click Done or Add Account (the button text varies). The account will appear in the Online Accounts list with a toggle switch next to it.
- To verify it worked, open the Files app. You should see your cloud storage under “Other Locations” or in the sidebar. For calendar and contacts, open the GNOME Calendar or Contacts app—your events and people should sync automatically.
Common Mistakes
- Enabling every service — Turning on Mail, Calendar, Contacts, and Files for every account can clutter your system and slow down initial sync. Only enable what you actually use.
- Using the wrong provider — If you have a Google Workspace (business) account, it still uses the “Google” option. Don’t pick “Microsoft” for a Google account, or vice versa.
- Skipping the “Allow” step — After signing in, you may see a page from the provider asking you to grant permissions to Ubuntu. If you click “Deny” or close the window, the account won’t be added.
- Forgetting to sign out of the provider’s web session — If you’re already signed into a Google or Microsoft account in a browser, the sign-in window may use that session, which can cause confusion if you intended to add a different account. Use a private window or sign out first.
Tips
- Use the Files toggle only if you want to browse your cloud files directly in the file manager. If you prefer using a dedicated cloud client (like Google Drive for Desktop), you can leave it off.
- For Nextcloud, you can add multiple accounts (e.g., one for work, one for personal) by repeating the process.
- If you later change your password on the provider’s website, you’ll need to update it in Ubuntu. Go to Settings > Online Accounts, click the account, and re-enter your new password.
- You can remove an account at any time by clicking it in the Online Accounts list and selecting Remove Account. This does not delete your data on the provider’s server—it only disconnects Ubuntu from it.
Troubleshooting
If the account doesn’t add or sync properly, try these steps in order:
- Restart the app or the system — Sometimes the file manager or calendar app needs a restart to pick up the new account. Log out and back in, or reboot.
- Check your internet connection — A weak or intermittent connection can cause the sign-in to fail. Try loading a website in your browser to confirm.
- Sign out and sign in again — In Settings > Online Accounts, toggle the account off, wait a few seconds, then toggle it back on. You may be asked to re-authenticate.
- Verify the provider’s service status — If Google or Microsoft is having an outage, the sign-in may time out. Check their status pages or try again later.
- Re-add the account — Remove the account completely (click it, then “Remove Account”), then add it again from scratch. This clears any corrupted tokens.
- Update your system — Open the Software Updater or run
sudo apt update && sudo apt upgradein a terminal, then reboot. Older packages can cause sync issues.
If none of that works, check the GNOME Online Accounts documentation for your specific provider—some services require extra steps or have known limitations.
Frequently Asked Questions
Why should I add an online account to Ubuntu?
It saves time by letting your file manager, calendar, contacts, and email apps access your cloud data without separate logins. It also keeps those apps in sync automatically, so you always see the latest files and events.
Which providers are supported?
Ubuntu 23.04 includes built-in support for Google, Microsoft (Outlook, Office 365, and Microsoft 365), Nextcloud, and a few others like Facebook (for photos and contacts) and IMAP/SMTP for email. The exact list may vary slightly with updates.
Can I add a Microsoft 365 work/school account?
Yes, Microsoft accounts work, including business and education accounts. Choose “Microsoft” and sign in with your work email. Some organizations may restrict third-party access, in which case you’ll see an error from your IT admin.
Will my files be downloaded to my local disk?
No, by default the Files integration only shows cloud files as online items. They are downloaded on demand when you open them, and you can choose to make them available offline if you want.
Does adding an account affect my privacy?
Ubuntu only stores the authentication tokens needed to access your data. The provider (Google, Microsoft, etc.) sees that you’ve connected, but Ubuntu does not share your data with anyone. You can revoke access at any time from the provider’s security settings.
What if I don’t want to use online accounts at all?
You don’t have to. Ubuntu works fine without them. You can still use web apps in a browser or install dedicated clients like Google Drive for Desktop, but you’ll lose the tight integration with the system.