Change @param "principal" to "userPrincipal".