getRoleOrNull

abstract suspend fun getRoleOrNull(): Role?

Get a Role object, or return null if one can't be retrieved.