Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.

Using the Default App Engine Service Account

After you create an App Engine application, the App Engine default service account is created and used as the identity of the App Engine service. The App Engine default service account is associated with your Cloud project and executes tasks on behalf of your apps running in App Engine.

By default, the App Engine default service account has the Editor role in the project. This means that any user account with sufficient permissions to deploy changes to the Cloud project can also run code with read/write access to all resources within that project.

Changing service account permissions

You can change the permissions for your service accounts in Cloud Console. For example, you can downgrade the permissions used by the App Engine default service account by changing its role from Editor to whichever role(s) that best represent the access needs for your App Engine application.

To change the permissions for your service accounts:

  1. Open the Cloud Console:

    Go to the Permissions page

  2. In the Members list, locate the ID of the App Engine default service account.

    The App Engine default service account uses the member ID:

  3. You can then use the dropdown menu to modify the roles assigned to the service account.

Using the default service account

Your App Engine app uses the credentials of the App Engine service account by default. For more information, see Granting your app access to Cloud services.

Restoring a deleted default service account

If you delete your App Engine default service account, your App Engine application might break and lose access to other Google Cloud services, such as Datastore.

You can restore App Engine default service accounts that have been deleted within the last 30 days by following the steps in undeleting a service account.

More information about service accounts

Cette page vous a-t-elle été utile ? Évaluez-la :

Envoyer des commentaires concernant…

App Engine standard environment for Python 2