Rahul Malik
Rahul Malik

Reputation: 201

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?

Upvotes: 1

Views: 1656

Answers (4)

dar
dar

Reputation: 6540

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

Upvotes: 1

JJ.
JJ.

Reputation: 5084

Yeah, there's no way to get information about people who haven't logged into your application.

Upvotes: 0

Jehiah
Jehiah

Reputation: 2779

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

Upvotes: 3

Nick Johnson
Nick Johnson

Reputation: 101149

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

Upvotes: 1

Related Questions