xdmp:credential-id( $credential-name as xs:string ) as xs:unsignedLong
Returns the id of a named credential.
xdmp:credential-id("intraweb") => 92837172832323