admin users?

20 views
Skip to first unread message

Jared

unread,
Apr 11, 2008, 9:33:09 AM4/11/08
to Google App Engine
I see the users.is_current_user_admin() function, but I don't see any
way to designate that a user is an admin. Is admin the same as
developer - I know I saw a way to designate someone as a developer of
an app via the dashboard.

Bertil Sherman

unread,
Apr 11, 2008, 9:44:48 AM4/11/08
to Google App Engine
When running the dev_appserver there is a check box on the login page
for admin. I remember reading that once the application is deployed
the owner of the account is the admin.

ma...@google.com

unread,
Apr 11, 2008, 12:38:05 PM4/11/08
to Google App Engine
Hi Jared,
You can add application administrators through the Google App Engine
Administration Console. Click on "Developers" and enter an email
address in the box where it says "Invite a Developer to Collaborate on
this Application." This will give the person you invite complete
ability to view the Administration Console, and the rights to upload
and modify the application as well.

As Bertil pointed out, in the development server, clicking the check
box on the login page will set the is_current_user_admin() method to
true.

-Marzia

Jared Greenwald

unread,
Apr 11, 2008, 12:52:47 PM4/11/08
to google-a...@googlegroups.com
I guess I was more looking for a way to differentiate admin users of
my site vs normal users - where admin users can create/modify/delete
and normal users can just add comments.

ma...@google.com

unread,
Apr 11, 2008, 1:22:39 PM4/11/08
to Google App Engine
Sure, there are a couple different ways to accomplish this. First,
you can make certain pages of your application available only to
administrators of your application. If you set a handler in your
app.yaml file to login: admin, only admins will be able to see and
take action on those pages.

On any of your application's pages you can use
users.is_current_user_admin() function to test if the person that is
logged in is listed as an admin for your application. If that person
is an admin, you can add the modify and delete functionality to your
page only for those users.

-Marzia

On Apr 11, 9:52 am, "Jared Greenwald" <greenwaldja...@gmail.com>
wrote:

Jared Greenwald

unread,
Apr 11, 2008, 1:26:00 PM4/11/08
to google-a...@googlegroups.com
So, there's no real distinction between developer that needs to change
the app with an admin that only just needs to change the data?

Ken Ashcraft

unread,
Apr 11, 2008, 8:47:53 PM4/11/08
to Google App Engine
On Apr 11, 10:26 am, "Jared Greenwald" <greenwaldja...@gmail.com>
wrote:
> So, there's no real distinction between developer that needs to change
> the app with anadminthat only just needs to change the data?

Correct. If you need to do this, you can store user information/
privileges in the datastore. Use a named key for a quick lookup.
http://code.google.com/appengine/docs/datastore/keysandentitygroups.html#Kinds_Names_and_IDs

If you have suggestions on how you would like in an ACL system
integrated with the admin console, please file an issue.

gg

unread,
Jun 8, 2008, 4:42:02 AM6/8/08
to Google App Engine

"You can add application administrators through the Google App Engine
Administration Console. Click on "Developers" and enter an email
address in the box where it says "Invite a Developer to Collaborate on
this Application." This will give the person you invite complete
ability to view the Administration Console, and the rights to upload
and modify the application as well. "

Actually there seems to be a bug that alters this
behavior .is_current_user_admin() does not return true for added
developers only for the original creator....

Marzia Niccolai

unread,
Jun 9, 2008, 1:04:26 PM6/9/08
to google-a...@googlegroups.com
Hi,
 If you add additional developers to your App Engine account, you will need to deploy a new version of the application before the is_current_user_admin() method will return true for the new administrator.

-Marzia
Reply all
Reply to author
Forward
0 new messages