Kinvey (Android) - I need all users list

丶灬走出姿态 提交于 2019-12-13 07:47:32

问题


How can I retrieve the entire list of users from kinvey?

I tried to use:

User[] users = myClient.user().retrieveBlocking(new Query()).execute(); 

but my application crashed.


回答1:


The user().retrieve will get just the logged-in user.

You cannot simply get a list of all users with the SDK. This would be a security risk. But, you might want to be able to look at the following:

a. User Discovery http://devcenter.kinvey.com/android/guides/users#lookup

b. Business Logic, where you can get a list of all users as a Custom Endpoint, then return that list to the caller. In that Endpoint, you can use "collectionAccess" to the "user" collection to get to that data.



来源:https://stackoverflow.com/questions/40938051/kinvey-android-i-need-all-users-list

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!