I am trying to retreive only the custom roles. Any work around to get that? I know we can get all the apis using API GET _plugins/_security/api/roles. However Is there any way i can pass the flag with reserved to false and retreive only custom created roles. I am trying to take backups only for custom roles.
Can you please let me know the solution?