---
schema_version: "1"
id: 8683e32b1a12bee33fe565664e58662c857672604d0e064979b5b0c4fa33f216
title: UserAuthCertificate
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_userauthcertificate.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_userauthcertificate.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6468fa95d9bd0a1a15d9b777eb0145ff2638b00b37ad23864a04e0bd5b09807b
description: Represents a PEM-encoded user certificate. These certificates are associated with a user, and externally uploaded. The uploaded certificate is used to authenticate the user.
---
# UserAuthCertificate

Represents a PEM-encoded user certificate. These certificates are associated with a user, and externally uploaded. The uploaded certificate is used to authenticate the user.

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

![Important](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

## File Suffix and Directory Location

UserAuthCertificate components have the suffix .userAuthCertificate and are stored in the userAuthCertificates folder.

## Version

UserAuthCertificate components are available in API version 50.0 and later.

## Fields

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d939947e101">Field Name</th>

              <th class="featureTableHeader  " id="d939947e104">Field Type</th>

              <th class="featureTableHeader  " id="d939947e107">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d939947e101" data-title="Field Name"><span class="keyword parmname">developerName</span></td>

              <td class="entry" headers="d939947e104" data-title="Field Type">string</td>

              <td class="entry" headers="d939947e107" data-title="Description">Required: The name of the certificate with an underscore between
                words.<div class="box message info">
                  <div class="inner">
                    <div class="bd">
                      <div class="media">
                        <img class="img mtm" src="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note.png" alt="Note">
                        <div class="mediaBd">
                          <h4 class="mbs">Note</h4>
                          <p>Only
                            users with View DeveloperName OR View Setup and Configuration permission can view,
                            group, sort, and filter this field.</p>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d939947e101" data-title="Field Name"><span class="keyword parmname">expirationDate</span></td>

              <td class="entry" headers="d939947e104" data-title="Field Type">dateTime</td>

              <td class="entry" headers="d939947e107" data-title="Description">Required. The date on which the certificate expires.</td>

            </tr>

            <tr>
              <td class="entry" headers="d939947e101" data-title="Field Name"><span class="keyword parmname">masterLabel</span></td>

              <td class="entry" headers="d939947e104" data-title="Field Type">string</td>

              <td class="entry" headers="d939947e107" data-title="Description">Required. A user-friendly name that you create for the certificate. Limited to
                64 characters.</td>

            </tr>

            <tr>
              <td class="entry" headers="d939947e101" data-title="Field Name"><span class="keyword parmname">serialNumber</span></td>

              <td class="entry" headers="d939947e104" data-title="Field Type">string</td>

              <td class="entry" headers="d939947e107" data-title="Description">Required. The serial number for the certificate.</td>

            </tr>

            <tr>
              <td class="entry" headers="d939947e101" data-title="Field Name"><span class="keyword parmname">user</span></td>

              <td class="entry" headers="d939947e104" data-title="Field Type">string</td>

              <td class="entry" headers="d939947e107" data-title="Description">Required: The user’s name.</td>

            </tr>

          </tbody>

        </table>

## Declarative Metadata Sample Definition

The following is an example of a UserAuthCertificate component.

<UserAuthCertificate xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <content xsi:nil="true"/>
    <developerName\>ND\_user\_cert</developerName\>
    <expirationDate\>2030-10-01T08:30:00.000Z</expirationDate\>
    <masterLabel\>ND user cert</masterLabel\>
    <serialNumber\>1401</serialNumber\>
    <user\>005RM000001Zn1E</user\>
</UserAuthCertificate\>

The following is an example package.xml that references the previous definition.

Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>\*</members\>
        <name\>UserAuthCertificate</name\>
    </types\>
    <version\>50.0</version\>
</Package\>

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/file_based_zip_file.htm "The deploy() and retrieve() calls are used to deploy and retrieve a .zip file. Within the .zip file is a project manifest (package.xml) that lists what to retrieve or deploy, and one or more XML components that are organized into folders.").