How to filter users by role and app metadata using Java SDK

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.

Hey there!

Can I ask you to raise it as a GitHub issue in the SDK repo so we can work on that directly with the repo maintainers? Once you have a link to it you can share it here so we can ping them. Thank you!

1 Like