简体   繁体   中英

How do you query the set of Users in Google App Domain within your Google App Engine project?

If you have a Google App Engine project you can authenticate based on either a) anyone with a google account or b) a particular google app domain. Since you can connect these two entities I would assume there is some way to query the list of users that can be authenticated. The use case is outputting a roster of all members in an organization to a web page running on Google App Engine. Any thoughts?

Querying all users that could possibly authenticate in the case of 'a' (all gmail users) would be millions and millions users, so I'm sure you don't expect to do that.

I'm sure you actually mean query the ones who have logged into your application previously, in which case you just create a table to store their user information, and populate that whenever an authenticated user is on your site.

You can read more in the Google App Engine Docs under Using User Values With the Datastore

There's nothing built in to App Engine to do this. If you have Apps Premium edition, however, you can use the reporting API .

You would have to use the Premium (or Education) Google apps version, and you can use the api to list all users in the apps domain:

GET https://apps-apis.google.com/a/feeds/domain/user/2.0

see docs here:

http://code.google.com/apis/apps/gdata_provisioning_api_v2.0_reference.html

是的,无法获取有关尚未登录您的应用程序的人的信息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM