---
title: GetTokenRequest
framework: devicemanagement
role: symbol
role_heading: Device Management Command
path: devicemanagement/gettokenrequest
---

# GetTokenRequest

The get token request details.

## Declaration

```data
object GetTokenRequest
```

## Properties

EnrollmentID: The per-enrollment identifier for the device. The system requires this value if the enrollment type is a user enrollment. EnrollmentUserID: The per-enrollment identifier for the user. The system requires this value if the enrollment type is a user enrollment on the user channel. Available: macOS 14+ MessageType: The message type, which requires a value of GetToken. TokenParameters: Parameters that the system uses to generate the token. TokenServiceType: A string that specifies the service for the requested token. UDID: The device’s UDID (unique device identifier). The system requires this value if the enrollment type is a device enrollment. UserID: For macOS, this value is the ID of the user. For Shared iPad, this value is FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF to indicate that authentication doesn’t occur. Available: iOS 17+ | iPadOS 17+ | macOS 14+ UserLongName: The full name of the user. Available: macOS 14+ UserShortName: For macOS, this value is the short name of the user. For Shared iPad, this value is the Managed Apple Account identifier of the user. When present, it indicates that the token is for the user channel. Available: iOS 17+ | iPadOS 17+ | macOS 14+

## Topics

### Objects

- [GetTokenRequest.TokenParameters](devicemanagement/gettokenrequest/tokenparameters-data.dictionary.md)

## See Also

### Requests and responses

- [GetTokenResponse](devicemanagement/gettokenresponse.md)
