[Bug]: The generated Apple configuration profile (.mobileconfig) contains the internal account UID as the CalDAV/CardDAV username instead of the username
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
The generated Apple configuration profile (.mobileconfig) contains the internal account UID as the CalDAV/CardDAV username instead of the username displayed by Nextcloud during App Password creation.
As a result, the generated profile cannot be installed on macOS without manual modification.
Steps to reproduce
- Install Nextcloud Server 34.0.1.
- Use the default local user backend (no LDAP, OpenID Connect or SAML).
- Create a local user with:
- an internal account name (UID)
- an email address
- Enable login via email address.
- Log in using the email address.
- Create an App Password under Settings → Security → Devices & sessions.
- Download the Apple configuration profile from the Personal settings page.
- Install the profile on macOS.
Expected behavior
The generated Apple configuration profile should use the same username that Nextcloud tells the user to use together with the generated App Password.
The profile should install without requiring manual edits.
Nextcloud Server version
34
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 31 to 32)
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
webhosted version, no shell
List of activated Apps
webhosted version, no shell
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
No relevant server-side errors are generated during profile download or installation.
Additional info
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Personal settings entry point that generates the Apple configuration profile and trace how the CalDAV/CardDAV username is selected for a local user who logs in by email. Reproduce the described account and App Password flow, then verify that the downloaded profile uses the username shown for App Password use and installs without manual edits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100