title: Add protocol-mapper to keycloak using kcadm.sh
body: <p>I have been trying to setup my full test system in keycloak using the kcadmin cli, but I have some problems creating protocol mappers:</p>
  
  <p><em>HTTP error - 400 Bad Request</em></p>
  
  <p>I have been trying to implement a request using: </p>
  
  <p><a href="http://www.keycloak.org/docs-api/3.3/rest-api/index.html" rel="noreferrer">http://www.keycloak.org/docs-api/3.3/rest-api/index.html</a>
  <a href="http://blog.keycloak.org/2017/01/administer-keycloak-server-from-shell.html" rel="noreferrer">http://blog.keycloak.org/2017/01/administer-keycloak-server-from-shell.html</a></p>
  
  <p>Am I missing something in the request:</p>
  
  <pre><code>/opt/jboss/keycloak/bin/kcadm.sh create \
  clients/7e8ef93b-0d0f-487d-84a5-5cfaee7ddf13/protocol-mappers/models \
  -r $test_realm \
  -s config.user.attribute=tenants \
  -s config.claim.name=tenants \
  -s config.jsonType.label=String \
  -s config.id.token.claim=true \
  -s config.access.token.claim=true \
  -s config.userinfo.token.claim=true \
  -s config.multivalued=true \
  -s name=tenants \
  -s protocolMapper=oidc-usermodel-attribute-mapper
  </code></pre>
  
  <p>This works:</p>
  
  <pre><code>/opt/jboss/keycloak/bin/kcadm.sh create \
  clients/7e8ef93b-0d0f-487d-84a5-5cfaee7ddf13/protocol-mappers/models \
  -r $test_realm \
  -s name=tenants1 \
  -s protocol=openid-connect \
  -s protocolMapper=oidc-usermodel-attribute-mapper
  </code></pre>