Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set the display name while creating a new user #239

Closed
derekbuckley opened this issue Apr 5, 2024 · 1 comment · Fixed by #240
Closed

Can't set the display name while creating a new user #239

derekbuckley opened this issue Apr 5, 2024 · 1 comment · Fixed by #240
Labels
bug Something isn't working fixed Fixed in last version

Comments

@derekbuckley
Copy link

derekbuckley commented Apr 5, 2024

Describe the bug

Creating a new user sets both the id and the display name to the supplied id.
However, when I tried:
curl -X POST https://admin:secret@nextcloud_url/ocs/v1.php/cloud/users -d userid="id" -d displayName="Display Name" -d email="email@domain.com" -H "OCS-APIRequest: true"
I was successful.

Steps/Code to Reproduce

from nc_py_api import Nextcloud
nc = Nextcloud(nextcloud_url='example.com', nc_auth_user='user', nc_auth_pass='password')
nc.users.create('id', 'Display Name', email='email@domain.com')

Expected Results

A user is created with the supplied id and display name

Actual Results

A user is created but its id and display name are both 'id' and the supplied display name is ignored

Setup configuration

nc_py_api = 0.12
nextcloud = 28.0.3

@bigcat88
Copy link
Member

bigcat88 commented Apr 5, 2024

Thank you very much for letting know about this bug.

Indeed, there is such a problem - it will be fixed today.

@bigcat88 bigcat88 added the bug Something isn't working label Apr 5, 2024
bigcat88 added a commit that referenced this issue Apr 5, 2024
Fixes #239

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
@bigcat88 bigcat88 added the fixed Fixed in last version label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed Fixed in last version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants