-
Notifications
You must be signed in to change notification settings - Fork 187
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
remarks after testing the creation of users and groups via GraphApi #3247
Comments
@rhafer great work and thanks for the good documentation. |
Can you clarify what you mean by this? Can you paste the request body that you used here. And do you thing there is a bug?
What do you mean with
Yeah, those are bugs that I need to fix.
Haven't been able to fully reproduce this yet. Need to take a closer look.
You mean creating to users having the same email address? That's a good question. But actually I don't think we can't fully prevent that (at least when using the LDAP backend)
Currently that is not implemented. We need to add support to the graph users API for this kind of query.
That's a know issue in the graph-explorer. It doesn't handle the 204 Status code properly |
|
Another important point, to know about it we cannot share resources with users, because request Steps:
|
This copies the validation code from the accounts service, also fixing a bug in the regex that allowed adding mail addresses with whitespace and other problematic characters to the domain part of the mail address. Partial fix for: owncloud#3247
This copies the validation code from the accounts service, also fixing a bug in the regex that allowed adding mail addresses with whitespace and other problematic characters to the domain part of the mail address. Partial fix for: owncloud#3247
some bugs are fixed, but some still exist |
I guess this is a configuration issue. Can you try adding
to your startup configuration. With that it should at least be able to list users. Note: the group part might still not work, that's because of know issues in the CS3 groupprovider. |
I tested it. Sharing with users works correctly. Thanks |
This copies the validation code from the accounts service, also fixing a bug in the regex that allowed adding mail addresses with whitespace and other problematic characters to the domain part of the mail address. Partial fix for: owncloud#3247
This copies the validation code from the accounts service, also fixing a bug in the regex that allowed adding mail addresses with whitespace and other problematic characters to the domain part of the mail address. Partial fix for: owncloud#3247
Basically all remarks are corrected, I close in favor of #3516 |
how setup: #3167
method descriptions: https://github.com/owncloud/ocis/pull/3149/files
run ocis with env:
set env:
run ocis localy:
OCIS_LOG_PRETTY=true OCIS_LOG_COLOR=true ocis/bin/ocis server
Test result:
Users:
GET /me - OK
GET /users/{id} - OK
GET /users/{accountname} - OK
Create users POST /users:
is not possible win OC10 with same nameif you create user without password or with space in password, you get 200, but user cannot login GET https://localhost:9200/ocs/v1.php/cloud/capabilities?format=json 401the reason is the same email. see RemarksUpdate atribute single user PATCH users/{id}:
Delete user DELETE /users/{id} - OK
Groups:
Create groups POST /groups:
Change atribute single group PATCH groups/{id}:
Add single member to group POST /groups/{id}/members/$ref:
Add multiple users PATCH /groups/{id}:
GET /groups - OK
GET /groups/{groupid} - OK
GET /groups/{groupid}/members - OK
Delete groups members DELETE /groups/{groupid}/members/{id}/$ref - OK
Remarks:
There is no check that the email is correct. Expect - 400 Invalid mail address
Creating or changing a user with an existing onPremisesSamAccountName. Actual - 500 Entry Already Exists. Expect - 400 account with $name exist
Creating group with an existing name. Actual - 500 Entry Already Exists. Expect - 400 group with $name exist
Changing group name does not work
Creating a user with the same email will break login:
3. try to log in to ocis as user1 - 401 unsuccessfully. you create new user with admin email "[email protected]" - will not be able to continue working
Questions:
The text was updated successfully, but these errors were encountered: