I have created a role and I am trying to assign a few client roles/composites to that role. I want to do that by rest api calls. But I can not get the composites’ IDs and IDs are required to successfully make the api calls.
Solution:
Get the clients from your realm: realms/{realm}/clients
You extract the ID of the client that you want to work on (1) and then: realms/{realm}/clients/{client-id-from-(1)}/roles
You will be returned all of IDs from the requested client (1).