Skip to content

Commit

Permalink
get grant-authusers-add-on-root script working again
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Jan 13, 2015
1 parent 02c1946 commit 1fa679a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/search/tests/grant-authusers-add-on-root
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh
. scripts/search/export-keys
ROOT_DATAVERSE=1
DV_CONTRIBUTOR_ROLE=4
OUTPUT=`curl -s -X POST -H 'Content-Type: application/x-www-form-urlencoded' "http://localhost:8080/api/roles/assignments?username=:AuthenticatedUsers&roleId=$DV_CONTRIBUTOR_ROLE&definitionPointId=$ROOT_DATAVERSE&key=$ADMINKEY"`
OUTPUT=`curl -s -X POST -H "Content-type:application/json" -d "{\"assignee\": \":AuthenticatedUsers\",\"role\": \"dvContributor\"}" "http://localhost:8080/api/dvs/root/assignments?key=$ADMINKEY"`
echo $OUTPUT
echo $OUTPUT | jq ' .data | {assignee,_roleAlias}'

0 comments on commit 1fa679a

Please sign in to comment.