PROBLEM:

While creating or altering a user with default tablespace got below error.

SOLUTION:

As the error says, we can’t set an undo tablespace as default tablespace for a user. The can only set as a PERMANENT tablespace.
We can get the type of tablespace by using below query.

So just use a tablespace with PERMANENT type,