Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now available in preview.

Module: google.appengine.api.users

The User Python datastore class to be used as a datastore data type.

Classes

class Error: Base User error type.

class NotAllowedError: The requested redirect URL is not allowed.

class RedirectTooLongError: The generated redirect URL was too long.

class User: Provides the email address, nickname, and ID for a user.

class UserNotFoundError: No email argument was specified, and no user is logged in.

Functions

CreateLoginURL(...): Computes the login URL for redirection.

CreateLogoutURL(...): Computes the logout URL and specified destination URL for the request.

GetCurrentUser(...): Retrieves information associated with the user that is making a request.

IsCurrentUserAdmin(...): Specifies whether the user making a request is an application admin.

create_login_url(...): Computes the login URL for redirection.

create_logout_url(...): Computes the logout URL and specified destination URL for the request.

get_current_user(...): Retrieves information associated with the user that is making a request.

is_current_user_admin(...): Specifies whether the user making a request is an application admin.