I'm sure it is not ideal for all cases, but I am using the Google Apps
Provisioning API.
   
http://code.google.com/googleapps/domain/gdata_provisioning_api_v2.0_reference.html

If someone knows a cleaner way to do this I would also love to know about it.



Robert






On Tue, Jan 4, 2011 at 02:29, Iap <[email protected]> wrote:
> Hi,
> I have an app with Multienancy, say, myapp.appspot.com.
> The namespace is set by os.environ['SERVER_NAME'].
> Then I deploy the app to a google app domain as a service, say,
> myhost.mydomain.com.
> Which means the following two url are the same:
> (A) http://myapp.appspot.com
> (B) http://myhost.mydomain.com
> Now, if the domain administrator of mydomain.com login the app by (B) .
> It returns False forĀ users.is_current_user_admin()
> I know that I can add the domain administrator to be the app's administrator
> from the dashboard.
> But that domain administrator will become the administrator of all the
> deployments.
> That is not good.
> How can I know whether the user is the administrator of their google app
> domain?
> Thanks in advance.
> Iap
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to