Build with credentialId.