Good morning all !
First of all, sorry for my level of English, it is low.
My goal is to be able to change (modify) the username of an existing account on my Gitlab self-managed but in command line to then automate it.
I looked at the Gitlab documentation and here are the links I checked:
- https://docs.gitlab.com/ee/api/users.html#user-modification
- https://docs.gitlab.com/ee/api/README.html
- https://docs.gitlab.com/ee/development/documentation/restful_api_styleguide.html#curl-commands
with this documentation, here is what I concluded but unfortunately does not work and I can not understand how to change username with API:
The account is āmonicaā and i want to modify that by ājulieā
curl --request PUT --header "PRIVATE-TOKEN: ITISASECRET" "https://my.gitlab.server/api/v4/users?username=**monica**" --data "username=**julie**"
Here ! I hope you can help me !