I used GitHub - auth0/auth0-java: Java client library for the Auth0 platform in my project(Spring Boot 3.0/Java 17/Kotlin), try to filter users by role name and app metadata.
val roleId = api.roles().list(RolesFilter()).execute().items.firstOrNull { it.name == roleName }?.id
....
val users=api.roles().listUsers(roleId, PageFilter().withPage(offset / limit, limit).withTotals(true)).execute()
But PageFilter
can not add app metadata as filter condition.