Getting Client Scopes from other Clients


I want to create a Client in Java that can request the scopes of other Clients

i want to use the: “Get default client scopes”. from the REST API

GET /{realm}/clients/{id}/default-client-scopes

Is it also possible to get all client scopes and not just the default ones?

With url /auth/admin/realms/{realmName}/client-scopes you can retrieve all realm scopes.
Then with url /auth/admin/realms/{realmName}/clients/{clientId}/optional-client-scopes optional client scopes and with url /auth/admin/realms/{realmName}/clients/{clientId}/default-client-scopes.
Note: scope could be assigned as default or optional, not both.

More on endpotins here