@Bean
@ConditionalOnMissingBean(name = "adminUserMetadataRoutes")
public ComponentRouteLocator adminUserMetadataRoutes(RoutesBuilder routesBuilder) {
return routesBuilder.routes()
.route("/users",
r -> r.componentId(AdminUserIds.BROWSE)
.scope(AdminUserScopes.ADMIN_USER)) // <--
.route("/users/create",
r -> r.componentId(AdminUserIds.CREATE)
.scope(AdminUserScopes.ADMIN_USER)) // <--
.route("/users/:id",
r -> r.componentId(AdminUserIds.UPDATE)
.scope(AdminUserScopes.ADMIN_USER)) // <--
.build();
}