After creating the new user from Command Prompt, you can modify the role of the new user from the pgAdmin 4 dashboard by performing the following steps:
- To do so, log in using the postgres user ID and then go to the new user testuser under Login/Group Roles.
- Right-click on testuser and select Properties…. It will then open the properties window as shown in the following screenshot:
- You can modify the privilege of the testuser user from this window by going to the Privileges tab of this window. Moreover, you can set an expiry date for the new account from the Definition tab.