User Management cURL Examples

The following are examples to submit requests on the REST resource, for GGSA user management services, using cURL.

Create User

curl -d '{"credential":"*********"}' -H 'Content-Type: application/json' -X POST -u <username>:<password> http://<ggsa_host>:<ggsa_port>/osa/admin/services/v1/authorizations/<role>/<username_to_create>

List Users

curl -X GET -u <username>:<password> http://<ggsa_host>:<ggsa_port>/osa/admin/services/v1/authorizations/<role>

Retrieve User

curl -X GET -u <username>:<password> http://<ggsa_host>:<ggsa_port>/osa/admin/services/v1/authorizations/<role>/<username>

Update User

curl -d '{"user":"<updated_username>", "credential":"*********"}' -H 'Content-Type: application/json' -X PATCH -u <username>:<password> http://<ggsa_host>:<ggsa_port>/osa/admin/services/v1/authorizations/<role>/<username_to_update>