This function removes roles from a team user.
uapi --output=jsonpretty \ --user=username \ Team \ remove_roles \ user='teamuser' \ role='database'
{- "apiversion": 3,
- "func": "remove_roles",
- "module": "Team",
- "result": {
- "data": { },
- "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}