Unable to grant admin rights due to error

The UI doesn’t allow me to do it:

Do I need to do this directly in the DB?