Python 3.9 is now generally available.

google.appengine.api.users.IsCurrentUserAdmin

Specifies whether the user making a request is an application admin.

Because administrator status is not persisted in the datastore, is_current_user_admin() is a separate function rather than a member function of the User class. The status only exists for the user making the current request.

True if the user is an administrator; all other user types return False.