English
Skip to page content Skip to main navigation

e.g. "templates" or "datastore"

# Functions

The `google.appengine.api.users` package provides the following functions:

create_login_url(dest_url)

  Returns a URL that, when visited, will prompt the user to sign in using a Google account, then redirect the user back to the URL given as dest_url. This URL is suitable for links, buttons and redirects.

  dest_url can be full URL or a path relative to your application's domain.

create_logout_url(dest_url)

  Returns a URL that, when visited, will sign the user out, then redirect the user back to the URL given as dest_url. This URL is suitable for links, buttons and redirects.

  dest_url can be full URL or a path relative to your application's domain.

get_current_user()

  Returns the User object for the current user (the user who made the request being processed) if the user is signed in, or `None` if the user is not signed in.

is_current_user_admin()

  Returns `True` if the current user is signed in and is currently registered as an administrator of this application.