Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Hi y'all. I'm struggling with using /api/update-user.

I'm programatically doing this in python, but here is the equivalent curl that fails in the same way:

curl http://localhost:8000/api/update-user?id=newsfeed/beardedtek \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Bearer: my_ver_long_token' \
-d '{
"id": "string",
"owner": "newsfeed",
"displayName": "beardedtek",
"phone": "5555551234",
"address: [
           "My Place",
           "My Town"
          ]
}'

I'm getting back:

{
  "status": "error",
  "msg": "Unauthorized operation",
  "data": null,
  "data2": null
}
1views
2users
1 minread
1 / 2
Jun 2025