How can I restrict client access to only one group of users in keycloak?

Is there any better solution for restricting some users for any client? Thanks. The ability to upload scripts through the Admin Console and REST endpoints is deprecated.