diff --git a/templates/accountProfiles/alumni1.tt2 b/templates/accountProfiles/alumni1.tt2
index aa710630ba1274431c5d1c941b9305e4f415cb41..3fc28442b5926a80a7c5b788ef87e3c4103fe2bb 100644
--- a/templates/accountProfiles/alumni1.tt2
+++ b/templates/accountProfiles/alumni1.tt2
@@ -4,7 +4,7 @@
 [% SET account_profile = {
 	'type' => 'Alumni',
 	'comment' => 'Value "member" is not set for eduPersonAffiliation, contrary to current students.',
-  	'uid' => "user${account_id}",
+  	'internal_uid' => "user${account_id}",
 	'eduPersonAffiliation' => ['alum'],
 	'eduPersonScopedAffiliation' => ["alum@${conf.idp_scope}"],
         'displayName' => 'Åsold Wahlstrøm',
diff --git a/templates/accountProfiles/employee1.tt2 b/templates/accountProfiles/employee1.tt2
index ef9b1fff60a65a382b8247884f4c4686dd979de9..02d163e3255fe110ed21bf0d6a25327a60ebf8a7 100644
--- a/templates/accountProfiles/employee1.tt2
+++ b/templates/accountProfiles/employee1.tt2
@@ -4,7 +4,7 @@
 [% SET account_profile = {
 	'type' => 'Employee',
 	'comment' => 'There are conflicting definitions of "staff" and "employee" from country to country that make those values particularly unreliable in any international context. However in this example we set both values.',
-  	'uid' => "user${account_id}",
+  	'internal_uid' => "user${account_id}",
 	'eduPersonAffiliation' => ['member','staff','employee'],
 	'eduPersonScopedAffiliation' => ["member@${conf.idp_scope}","staff@${conf.idp_scope}","employee@${conf.idp_scope}"],
         'displayName' => 'Linnéa Hsu',
diff --git a/templates/accountProfiles/generic1.tt2 b/templates/accountProfiles/generic1.tt2
index 350cda7d5c4837d1f2ad9cb52bac756a6a97319b..6b72630a4f7400dd6617321efca169a7ba7e78c5 100644
--- a/templates/accountProfiles/generic1.tt2
+++ b/templates/accountProfiles/generic1.tt2
@@ -4,7 +4,7 @@
 [% SET account_profile = {
 	'type' => 'Generic',
 	'comment' => 'This account provides a limited set of user attributes (eduPersonPrincipalName, mail and displayName).',
-  	'uid' => "user${account_id}",
+  	'internal_uid' => "user${account_id}",
         'displayName' => '山崎 弘子樫野 陽子',
         'mail' => "forearartian@${conf.idp_scope}",
         'eduPersonPrincipalName' =>"${account_id}@${conf.idp_scope}",
diff --git a/templates/accountProfiles/librarywalkin1.tt2 b/templates/accountProfiles/librarywalkin1.tt2
index a9216d1079c6a44657266f9723899fb44cad81cc..20ba7e441df436d2a989e9130fd4717b205094fb 100644
--- a/templates/accountProfiles/librarywalkin1.tt2
+++ b/templates/accountProfiles/librarywalkin1.tt2
@@ -4,7 +4,7 @@
 [% SET account_profile = {
 	'type' => 'Library walk-in',
 	'comment' => 'This term was created to cover the case where physical presence in a library facility grants someone access to electronic resources typically licensed for faculty, staff and students. In recent years the library walk-in provision has been extended to cover other cases such as library users on the campus network, or those using on-campus workstations. Licensed resource providers have often been willing to interpret their contracts with licensees to accept this broader definition of "library-walk-in," though specific terms may vary. For a more direct way of using eduPerson attributes to express library privilege information, see the eduPersonEntitlement value "urn:mace:dir:entitlement:common-lib-terms" as defined in the MACE-Dir Registry of eduPersonEntitlement values <a href="http://middleware.internet2.edu/urn-mace/urn-mace-dir-entitlement.html">http://middleware.internet2.edu/urn-mace/urn-mace-dir-entitlement.html</a>.',
-  	'uid' => "user${account_id}",
+  	'internal_uid' => "user${account_id}",
 	'eduPersonAffiliation' => ['library-walk-in'],
 	'eduPersonScopedAffiliation' => ["library-walk-in@${conf.idp_scope}"],
         'displayName' => 'Ramón Núñez',
diff --git a/templates/accountProfiles/researcher1.tt2 b/templates/accountProfiles/researcher1.tt2
index 60342137f1cd052e5663687e3df3bce72c800f0f..bad7083b16ece9f9dca7121cbea218aada3f5f3b 100644
--- a/templates/accountProfiles/researcher1.tt2
+++ b/templates/accountProfiles/researcher1.tt2
@@ -4,7 +4,7 @@
 [% SET account_profile = {
 	'type' => 'Researcher',
 	'comment' => "No standard value for eduPersonAffiliation can be used to represent a researcher. Therefore you can't differenciate a teacher from a researcher.",
-  	'uid' => "user${account_id}",
+  	'internal_uid' => "user${account_id}",
 	'eduPersonAffiliation' => ['member', 'faculty'],
 	'eduPersonScopedAffiliation' => ["member@${conf.idp_scope}", "faculty@${conf.idp_scope}"],
         'displayName' => 'Stéphane Larivière',
diff --git a/templates/accountProfiles/student1.tt2 b/templates/accountProfiles/student1.tt2
index d6ed41fdf08e5868f5d4601d8408ee0c391ddc59..d6d9843a1696f4a77bee6d0b2f5429e6bcccefae 100644
--- a/templates/accountProfiles/student1.tt2
+++ b/templates/accountProfiles/student1.tt2
@@ -4,7 +4,7 @@
 [% SET account_profile = {
 	'type' => 'Student',
 	'comment' => 'An active student has both "member" and "student" values set for eduPersonAffiliation.',
-  	'uid' => "user${account_id}",
+  	'internal_uid' => "user${account_id}",
 	'eduPersonAffiliation' => ['member', 'student'],
 	'eduPersonScopedAffiliation' => ["member@${conf.idp_scope}","student@${conf.idp_scope}"],
         'displayName' => 'Ciarán MacCárthaigh',
diff --git a/templates/accountProfiles/student2.tt2 b/templates/accountProfiles/student2.tt2
index cea268fb2efe41b96f37a6f24f48c89b0e60e571..5dba5819162c4f8584e5d0386d5ae085e5ee509b 100644
--- a/templates/accountProfiles/student2.tt2
+++ b/templates/accountProfiles/student2.tt2
@@ -4,7 +4,7 @@
 [% SET account_profile = {
 	'type' => 'Student',
 	'comment' => 'A PhD student, having three values set for eduPersonAffiliation: "member" and "student" and "faculty".',
-  	'uid' => "user${account_id}",
+  	'internal_uid' => "user${account_id}",
 	'eduPersonAffiliation' => ['member', 'student','faculty'],
 	'eduPersonScopedAffiliation' => ["member@${conf.idp_scope}","student@${conf.idp_scope}","faculty@${conf.idp_scope}"],
         'displayName' => 'Damiën Kuijper',
diff --git a/templates/accountProfiles/teacher1.tt2 b/templates/accountProfiles/teacher1.tt2
index 38b298ccf26600661b9f4afc326f8cc92463c0d1..f15db36ba80b7ec52c6a51d5ddb85a152a18ef23 100644
--- a/templates/accountProfiles/teacher1.tt2
+++ b/templates/accountProfiles/teacher1.tt2
@@ -4,7 +4,7 @@
 [% SET account_profile = {
 	'type' => 'Teacher',
 	'comment' => 'An active teacher has both "member" and "faculty" values set for eduPersonAffiliation.',
-  	'uid' => "user${account_id}",
+  	'internal_uid' => "user${account_id}",
 	'eduPersonAffiliation' => ['member', 'faculty'],
 	'eduPersonScopedAffiliation' => ["member@${conf.idp_scope}", "faculty@${conf.idp_scope}"],
         'displayName' => 'Peter Müller',
diff --git a/templates/accountProfiles/teacher2.tt2 b/templates/accountProfiles/teacher2.tt2
index dea6e52a4fa68a205a02a5e87d5f0fe66c7d7a51..8b8b749bfdd571f5d49113943edabd1cd530ab26 100644
--- a/templates/accountProfiles/teacher2.tt2
+++ b/templates/accountProfiles/teacher2.tt2
@@ -4,7 +4,7 @@
 [% SET account_profile = {
 	'type' => 'Teacher',
 	'comment' => 'This account provides a limited set of user attributes (eduPersonScopedAffiliation and eduPersonTargetedID).',
-  	'uid' => "user${account_id}",
+  	'internal_uid' => "user${account_id}",
 	'eduPersonScopedAffiliation' => ["member@${conf.idp_scope}", "faculty@${conf.idp_scope}"],
 } %]
 
diff --git a/templates/web/validate_token.tt2.html b/templates/web/validate_token.tt2.html
index 0db47fa782bceaa31f548f3bf122aa0da74d05cc..bd04d0eb2cf12188db83d57f7e8e952bf1b82e07 100644
--- a/templates/web/validate_token.tt2.html
+++ b/templates/web/validate_token.tt2.html
@@ -43,7 +43,7 @@
 			<table>
 				<caption>List of user attributes</caption>
             [% FOREACH attribute IN account_profile.pairs -%]
-              [% NEXT IF attribute.key.match('^(type|comment|uid)$') %]
+              [% NEXT IF attribute.key.match('^(type|comment|internal_uid)$') %]
               
               [% IF attribute.value.isa('SCALAR') -%]
 				<tr>