Hello,
I use ansible for manage my User Federation with Keycloak API
It’s OK for create ldap user federation.
But when i want add Mappers with group-ldap-mapper it’s KO.
There is my task which failed:
- name: keycloak add mapper ldap
delegate_to: localhost
uri:
url: “{{ url }}”/{{ id of user federation }}
method: PUT
body_format: json
headers:
Content-Type: application/json
Authorization: Bearer {{ secret }}
body:
name: test
parentId: ldap
providerId: group-ldap-mapper
providerType: org.keycloak.storage.ldap.mappers.LDAPStorageMapper
config:
groups.dn: [“ou=test,ou=test”]
mode: [“READ_ONLY”]
Failed with status code 500.
Can you help me please?