[Bug]: User can overwrite profile visibility settings via API
Open
@miaulalala is already working on this.
Since May 13, 2026.
0. Needs triage
33-feedback
bug
feature: profile
feature: users and groups
- 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
PUT /ocs/v2.php/cloud/users/<user_id>
Content-Type: application/json
{
"key": "websiteScope",
"value": "v2-published"
}
The API request allows a user to set visibility values that may not be supported on the frontend.
Steps to reproduce
- Log in to a Nextcloud instance as a regular user.
- Navigate to: Settings → Personal Info → Profile visibility
- Observe that the "Published" visibility option is disabled (greyed out) for certain fields (e.g., website).
- Intercept the request when modifying a profile field using a proxy tool (e.g., Burp Suite).
- Modify the request
Expected behavior
The API is in sync with the frontend UI
Nextcloud Server version
33
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
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.
Assessment
This issue has not been assessed yet.