Romain Eude
07/04/2024, 4:15 PMcurl -H "Authorization: Bearer $PROD_GOODDATA_API_TOKEN" -X GET $PROD_GOODDATA_HOST_URL/api/v1/entities/users?include=userGroups
zsh: no matches found: https://xxxxxx.cloud.gooddata.com/api/v1/entities/users?include=userGroups
curl -H "Authorization: Bearer $PROD_GOODDATA_API_TOKEN" -X GET $PROD_GOODDATA_HOST_URL/api/v1/entities/users
{“data”[{“id”“06f5df86-7070-4aa4-ba71-70e9d3011524”,“type”“user”,“attributes”{“authenticationId”“auth0|663c95ac4b54d4701f20c96c”,“firstname”“”.....
Why would the ?include=…
not work?Moises Morales
07/04/2024, 4:24 PMRomain Eude
07/04/2024, 8:28 PMJulius Kos
07/08/2024, 12:51 PMRomain Eude
07/09/2024, 12:43 PM<https://fitcollective.cloud.gooddata.com/api/v1/entities/users?include=userGroups>
in shell/curl, this failed.
curl -H "Authorization: Bearer $PROD_GOODDATA_API_TOKEN" -X GET $PROD_GOODDATA_HOST_URL/api/v1/entities/users?include=userGroups
zsh: no matches found: <https://fitcollective.cloud.gooddata.com/api/v1/entities/users?include=userGroups>
and it’s because of the ?
… you need to put the whole url between "
.
This (obviously) works:
curl -H "Authorization: Bearer $PROD_GOODDATA_API_TOKEN" -X GET "$PROD_GOODDATA_HOST_URL/api/v1/entities/users?include=userGroups"