Back to Filestash

list users

server/plugin/plg_authenticate_local/README.md

0.4545 B
Original Source
export TOKEN=xxxx


# list users
curl -H "Accept: application/json" -H "Authorization: Bearer $TOKEN" "http://localhost:8334/admin/api/simple-user-management"

# upsert user
curl -X POST -d '[email protected]&password=password&role=user' -H "Accept: application/json" -H "Authorization: Bearer $TOKEN" "http://localhost:8334/admin/api/simple-user-management"

# delete user
curl -X DELETE -H "Accept: application/json" -H "Authorization: Bearer $TOKEN" "http://localhost:8334/admin/api/[email protected]"