<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.1.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceManagement",
  "identifier" : "/documentation/DeviceManagement/AssetCredentialUserNameAndPassword",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Device Management"
    ],
    "preciseIdentifier" : "rmdm-declarations:AssetCredentialUserNameAndPassword"
  },
  "title" : "AssetCredentialUserNameAndPassword"
}
-->

# AssetCredentialUserNameAndPassword

A reference to data that describes a credential that represents a user name and password.

```
object AssetCredentialUserNameAndPassword
```

## Discussion

Specify `com.apple.asset.credential.userpassword` as the declaration type.

### Asset example

```json
{
    "Type": "com.apple.asset.credential.userpassword",
    "Identifier": "EB13EE2B-5D63-4EBA-810F-5B81D07F5017",
    "ServerToken": "E180CA9A-F089-4FA3-BBDF-94CC159C4AE8",
    "Payload": {
        "Reference": {
            "DataURL": "https://example.com/asset-data/credential.json",
            "ContentType": "application/json"
        }
    }
}
```

## Topics

### Objects

[`AssetCredentialUserNameAndPasswordAuthenticationObject`](/documentation/DeviceManagement/AssetCredentialUserNameAndPasswordAuthenticationObject)

The server authentication details. If this key is absent, the default authentication type is MDM.

[`AssetCredentialUserNameAndPasswordReferenceObject`](/documentation/DeviceManagement/AssetCredentialUserNameAndPasswordReferenceObject)

The external reference. Ensure that the asset data:



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)