diff --git a/lib/SimpleSAML/Consent/Consent.php b/lib/SimpleSAML/Consent/Consent.php
index 0ada2fee11a3f18229791a21d8d7eff8a94ce467..dbc8a23c7e52cc5dc17c16a61f70cd9da3a40765 100644
--- a/lib/SimpleSAML/Consent/Consent.php
+++ b/lib/SimpleSAML/Consent/Consent.php
@@ -72,7 +72,7 @@ class SimpleSAML_Consent_Consent {
 	 *
 	 * @return hash( eduPersonPrincipalName + salt + IdP-identifier ) 
 	 */
-	private function getHashedUserID() {
+	public function getHashedUserID() {
 		$userid_attributename = $this->config->getValue('consent_userid', 'eduPersonPrincipalName');
 		
 		if (empty($this->attributes[$userid_attributename])) {