This function reinstates a team user by removing any suspended or expired statuses. The reason field is also cleared.
uapi --output=jsonpretty \ --user=username \ Team \ reinstate_team_user \ user='teamUser'
{- "apiversion": 3,
- "func": "reinstate_team_user",
- "module": "Team",
- "result": {
- "data": { },
- "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}