Created
February 18, 2016 23:05
-
-
Save StevenMMortimer/af77afdb74d0d6925b00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Thanks for sharing CreateUser curl,It works fine.
Could you please share the same curl for CreateRole and AssignRolestoUser .
Thanks