This function sets roles for a team user.
Note:
This action may result in team users gaining access to team owner level privileges.
uapi --output=jsonpretty \ --user=username \ Team \ set_roles \ user='teamuser'
{- "apiversion": 3,
- "func": "set_roles",
- "module": "Team",
- "result": {
- "data": { },
- "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}