Skip to content

Instantly share code, notes, and snippets.

@JSONOrona
Created March 9, 2023 16:08
Show Gist options
  • Save JSONOrona/0c20e4886a21520e4fb8a0a64d3f6a00 to your computer and use it in GitHub Desktop.
Save JSONOrona/0c20e4886a21520e4fb8a0a64d3f6a00 to your computer and use it in GitHub Desktop.
curl -X POST \
-H "Content-Type: application/json" \
-H "api-token: YOUR_API_TOKEN" \
-d '{
"name": "LDAP_USERNAME",
"email": "LDAP_EMAIL",
"password": "",
"authentication_type": "ldap",
"role_names": [
"ROLE_NAME_1",
"ROLE_NAME_2"
]
}' \
https://YOUR_CHEF_AUTOMATE_URL/api/v0/auth/users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment