Appendix: Map Service Roles to LDAP Roles

This appendix is a reference guide for curl commands used to map LDAP roles to service roles in previous versions of MarkLogic Data Hub Service.

2.10.0 to 2.11.0

The curl commands for services running MarkLogic Data Hub Service versions 2.10.0 to 2.11.0.

 
  curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
    -d '{"role-name": "custom-pii-reader","role": ["pii-reader"],"external-names":[{"external-name":"ROLE_DN"}]}' \
    https://HOSTNAME:8002/manage/v2/roles/
    
  curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
     -d '{"role-name": "custom-data-hub-admin","role": ["data-hub-admin"],"external-names":[{"external-name":"ROLE_DN"}]}' \
     https://HOSTNAME:8002/manage/v2/roles/ 
     
  curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
     -d '{"role-name": "custom-data-hub-developer","role": ["data-hub-developer"],"external-names":[{"external-name":"ROLE_DN"}]}' \
     https://HOSTNAME:8002/manage/v2/roles/ 
     
  curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
     -d '{"role-name": "custom-data-hub-operator","role": ["data-hub-operator"],"external-names":[{"external-name":"ROLE_DN"}]}' \
     https://HOSTNAME:8002/manage/v2/roles/ 
     
  curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
     -d '{"role-name": "custom-data-hub-monitor","role": ["data-hub-monitor"],"external-names":[{"external-name":"ROLE_DN"}]}' \
     https://HOSTNAME:8002/manage/v2/roles/ 
     
* curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
     -d '{"role-name": "custom-data-hub-explorer-architect","role": ["data-hub-explorer-architect"],"external-names":[{"external-name":"ROLE_DN"}]}' \
     https://HOSTNAME:8002/manage/v2/roles/ 
     
  curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
    -d '{"role-name": "custom-odbcUser","role": ["odbcUser"],"external-names":[{"external-name":"ROLE_DN"}]}' \
    https://HOSTNAME:8002/manage/v2/roles/ 
Note: If it is marked with an asterisk (*), it is not available in Standard services.

2.9.11 and Earlier Versions

The curl commands for services running MarkLogic Data Hub Service version 2.9.11 and earlier verions.

 
  curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
    -d '{"role-name": "custom-flowDeveloper","role": ["flowDeveloper"],"external-names":[{"external-name":"ROLE_DN"}]}' \
    https://HOSTNAME:8002/manage/v2/roles/ 
  
  curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
    -d '{"role-name": "custom-flowOperator","role": ["flowOperator"],"external-names":[{"external-name":"ROLE_DN"}]}' \
    https://HOSTNAME:8002/manage/v2/roles/ 
  
  curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
    -d '{"role-name": "custom-endpointDeveloper","role": ["endpointDeveloper"],"external-names":[{"external-name":"ROLE_DN"}]}' \
    https://HOSTNAME:8002/manage/v2/roles/ 
  
  curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
    -d '{"role-name": "custom-endpointUser","role": ["endpointUser"],"external-names":[{"external-name":"ROLE_DN"}]}' \
    https://HOSTNAME:8002/manage/v2/roles/ 
  
  curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
    -d '{"role-name": "custom-odbcUser","role": ["odbcUser"],"external-names":[{"external-name":"ROLE_DN"}]}' \
    https://HOSTNAME:8002/manage/v2/roles/