Skip to content

Updating the current user's username fails unless superuser #411

Description

@gctucker

When trying to update the username of my current user I get a Forbidden HTTP 403 error:

$ ./kci user whoami --api=local
{
   "id": "654e821d1710db5090716e97",
   "email": "guillaume.tucker@gmail.com",
   "is_active": true,
   "is_superuser": false,
   "is_verified": true,
   "username": "test003",
   "groups": []
}
$ ./kci user update --api=local --new-username=gtucker
Error: 403 Client Error: Forbidden for url: http://172.17.0.1:8001/latest/user/654e821d1710db5090716e97
Forbidden

This worked with a superuser account and --username=test003 so it's most likely a small bug on the API side around permission checks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions