Сhanging users ' email addresses

Hi everybody!

I need to write a python script that allows me to change the email addresses of users

The problem is that I manage to change various user attributes, such as “bio” and etc
But I can’t change the “email”.
The script reports a successful change of these attributes, but in fact they do not change.

I am working as the root user, using his token

To change the user attributes, I use this construction

gl = gitlab.Gitlab(arg.url, private_token=arg.token)
user = gl.users.list(username = 'name')[0]
user.bio = f"{user.username}@EXAMPLE.COM"

I also tried working with classic requests, instead of the gitlab library, but the result was the same