ws1-client-sdk/com.airwatch.sdk/SDKManager/getEnrollmentUsername
getEnrollmentUsername¶
open fun getEnrollmentUsername(): String
Retrieves Enrollment Username assigned to the App which the device is currently enrolled. Access level AW_MANAGED for Agent V6.0 and above, for previous versions it is AW_ONLY.
Access Level = AW_MANAGED (for details on access permission please check SDKManager)
Return¶
The Enrollment Username.
Throws¶
| Exception | Condition |
|---|---|
| com.airwatch.sdk.AirWatchSDKException | if API is not available in Anchor Application or binding with Anchor app fails or app is not enrolled |