It's not possible to add/change roles of a team meber in Appwrite Frontend. When you click on a member of a team you get forwarded to the configuration page of the user and not the team member.
TL;DR
Developers are unable to change team members' roles in Appwrite Frontend as clicking on a team member directs them to the user configuration page instead.