diff --git a/docs/simplesamlphp-googleapps.txt b/docs/simplesamlphp-googleapps.txt
index 9b6e4f1704cf5eaf5f7f2f6cb9b444df5323903b..03f3cd0ca587687ba520ef7efe4b2e85fcba9922 100644
--- a/docs/simplesamlphp-googleapps.txt
+++ b/docs/simplesamlphp-googleapps.txt
@@ -163,7 +163,7 @@ In the (`saml20-sp-remote.php`) file we will configure an entry for Google Apps
        */
       'google.com' => array(
         'AssertionConsumerService'   => 'https://www.google.com/a/g.feide.no/acs', 
-        'NameIDFormat'               => 'urn:oasis:names:tc:SAML:2.0:nameid-format:email',
+        'NameIDFormat'               => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
         'simplesaml.nameidattribute' => 'uid',
         'simplesaml.attributes'      => false
       );
diff --git a/docs/simplesamlphp-reference-sp-remote.txt b/docs/simplesamlphp-reference-sp-remote.txt
index 73eca20c8bd7ec699dd3ba16caa65392bad8a756..052cf3c1fb6587a5a420dabb45b8ab7f721dc38a 100644
--- a/docs/simplesamlphp-reference-sp-remote.txt
+++ b/docs/simplesamlphp-reference-sp-remote.txt
@@ -173,7 +173,7 @@ The following SAML 2.0 options are available:
 
 :   1.  `urn:oasis:names:tc:SAML:2.0:nameid-format:transient`
     2.  `urn:oasis:names:tc:SAML:2.0:nameid-format:persistent`
-    3.  `urn:oasis:names:tc:SAML:2.0:nameid-format:email`
+    3.  `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress`
 
 :   The `transient` format will generate a new unique ID every time
     the SP logs in.
diff --git a/metadata-templates/saml20-sp-remote.php b/metadata-templates/saml20-sp-remote.php
index 9d80f8f4bfb78c353dca579369ab2888575bfd19..f2cff56a7e157683f1d6a9632793078772cd904a 100644
--- a/metadata-templates/saml20-sp-remote.php
+++ b/metadata-templates/saml20-sp-remote.php
@@ -21,7 +21,7 @@ $metadata['https://saml2sp.example.org'] = array(
  */
 $metadata['google.com'] = array(
 	'AssertionConsumerService' => 'https://www.google.com/a/g.feide.no/acs',
-	'NameIDFormat' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:email',
+	'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
 	'simplesaml.nameidattribute' => 'uid',
 	'simplesaml.attributes' => FALSE,
 );