Skip to content

Instantly share code, notes, and snippets.

@StevenMMortimer
Created February 18, 2016 23:05
Show Gist options
  • Save StevenMMortimer/af77afdb74d0d6925b00 to your computer and use it in GitHub Desktop.
Save StevenMMortimer/af77afdb74d0d6925b00 to your computer and use it in GitHub Desktop.
curl -u userName:password -H "Accept: application/json" http://locahost:8080/pentaho/api/userroledao/users
curl -u userName:password -H "Accept: application/json" http://locahost:8080/pentaho/api/userroledao/roles
curl -X PUT -u userName:password http://locahost:8080/pentaho/api/userroledao/createUser \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{ "userName" : "Test1", "password" : "test" }'
curl -X PUT -u userName:password http://locahost:8080/pentaho/api/userroledao/createUser \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{ "userName" : "Test2", "password" : "test" }'
curl -X PUT -u userName:password http://locahost:8080/pentaho/api/userroledao/updatePassword \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{ "userName" : "Test1", "password" : "test99" }'
sep with %09 (url encoded tab character)
curl -X PUT -u userName:password http://locahost:8080/pentaho/api/userroledao/deleteUsers?userNames=Test1%09Test2
@getfrans
Copy link

Hi,
Thanks for sharing CreateUser curl,It works fine.
Could you please share the same curl for CreateRole and AssignRolestoUser .

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment