---
title: AssetCredentialUserNameAndPassword
framework: devicemanagement
role: symbol
role_heading: Object
path: devicemanagement/assetcredentialusernameandpassword
---

# AssetCredentialUserNameAndPassword

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

## Declaration

```data
object AssetCredentialUserNameAndPassword
```

## Properties

Authentication: The server authentication details. If this key is absent, the default authentication type is MDM. Available: iOS 17+ | iPadOS 17+ | macOS 14+ | tvOS 17+ | visionOS 1.1+ | watchOS 10+ Reference: The external reference. Ensure that the asset data: Is a JSON document that represents the com.apple.credential.usernameandpassword credential type Uses a media type of application/json, and if it includes a ContentType sub-key, that sub-key media type is also application/json

## Discussion

Discussion Specify com.apple.asset.credential.userpassword as the declaration type. Asset example {     "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](devicemanagement/assetcredentialusernameandpasswordauthenticationobject.md)
- [AssetCredentialUserNameAndPasswordReferenceObject](devicemanagement/assetcredentialusernameandpasswordreferenceobject.md)

## See Also

### Assets

- [AssetCredentialACME](devicemanagement/assetcredentialacme.md)
- [AssetCredentialCertificate](devicemanagement/assetcredentialcertificate.md)
- [AssetCredentialIdentity](devicemanagement/assetcredentialidentity.md)
- [AssetCredentialSCEP](devicemanagement/assetcredentialscep.md)
- [AssetData](devicemanagement/assetdata.md)
- [AssetUserIdentity](devicemanagement/assetuseridentity.md)
