asUser

fun asUser(): String

Casts this SubscriptionPrincipal as a User and retrieves its kotlin.String value. Throws an exception if the SubscriptionPrincipal is not a User.