Unable to reference user credential in withCredentials

I have following pipeline:

properties([
    parameters([
        credentials(name: "someCredentialId")
    ])
])

node("master") {
    withCredentials([usernamePassword(credetialsId: someCredentialId, usernameVariable:"user", passwordVariable: "pass")]) {
        ...
    }
}

When I choose user scoped credential the pipeline fails with the following message:

Could not find credentials entry with ID '...'

It can successfully access global credential.

How can I access user scope credential?