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

Allow listing of users and groups via OCS API #17749

Closed
wants to merge 4 commits into from
Closed

Allow listing of users and groups via OCS API #17749

wants to merge 4 commits into from

Conversation

rullzer
Copy link
Contributor

@rullzer rullzer commented Jul 20, 2015

As described in #16646

This allows listing of users and groups so clients can also implement user/group sharing (with completion).

Original I had the Link header. But that breaks unit testing.

TODO:

  • shareable option (to only list who we can share with) (default?, no other reason to list)
  • Maybe direct avatar link .../users//avatar (separate PR).

Comments are welcome: @DeepDiver1975 @LukasReschke @PVince81 @MorrisJobke

@dragotin: Can you think of any additional stuff we need in the client besides the uid/displayname and maybe an avatar?

@rullzer rullzer added this to the 8.2-current milestone Jul 20, 2015
@scrutinizer-notifier
Copy link

A new inspection was created.

@ghost
Copy link

ghost commented Jul 20, 2015

🚀 Test PASSed.🚀
chuck

@nickvergessen
Copy link
Contributor

Duplicating https://github.com/owncloud/core/blob/master/apps/provisioning_api/lib/users.php#L40-L45
Maybe we can extend the existing end point to allow searching? But then again you need the Provi App to be enabled, so maybe some core thing makes more sense.

@rullzer
Copy link
Contributor Author

rullzer commented Jul 21, 2015

@nickvergessen well the provisioning API requires ADMIN_AUTH.
And the whole app servers a different purpose. So yes there is duplication but there is a reason ;)

Also this should probably be in core... just as the sharing API should be in core.

@nickvergessen
Copy link
Contributor

Also this should probably be in core... just as the sharing API should be in core.

Which is exactly what I wanted to tell you. Instead of duplicating it, move one to core ;)

@rullzer
Copy link
Contributor Author

rullzer commented Jul 21, 2015

@nickvergessen well, the functions calls are already standardized in core. So then both would just call the same function. Which now also is basically the case (provision is bad by not using OCP). We just happen to have 2 endpoints that can show the same data.

Keep in mind that we might want to filter the endpoint here to only people/groups that we can share with. Which would not be a requirement for the provisioning API.

At some point we probably should move more stuff to core. But probably that only makes sense if sharing is also moved.

@DeepDiver1975
Copy link
Member

This implementation has to respect the existing behavior - see https://github.com/owncloud/core/blob/master/core/ajax/share.php#L238-L389

@DeepDiver1975
Copy link
Member

Hmm ... I don't know if this is the right approach, because (at least from my understanding) we need to return users, groups and remote users (fed cloud id from contacts) based on the search string.

This would result into 3 server calls ... we might want to have an api with combined results?

For the link sharing by email we need only mail addresses to be returned ....

@rullzer @PVince81 @blizzz @danimo @rperezb

@rullzer
Copy link
Contributor Author

rullzer commented Aug 7, 2015

@DeepDiver1975 yeah thinking about this also made me reconsider.
For now I think I'll just copy the old behaviour to the OCS Share API. Maybe a bit more structured. Hopefully I can get it fixed this weekend.

@DeepDiver1975
Copy link
Member

For now I think I'll just copy the old behaviour to the OCS Share API. Maybe a bit more structured. Hopefully I can get it fixed this weekend.

I'll chat with @danimo and @rperezb about this .... let's see

@DeepDiver1975
Copy link
Member

We need a different approach as discussed - let me close this - THX @rullzer

@rullzer rullzer deleted the ocs_user_group_listing branch August 7, 2015 10:13
@lock lock bot locked as resolved and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants