Add roles to a team user

This function adds roles to a team user.

Note:

This action may result in team users gaining access to team owner level privileges.

SecurityBasicAuth
Request
query Parameters
role
required
string

The role or roles to add to the team user. Current roles include admin, database, email, web.

Example: role=database
user
required
string

The username of the team user.

Example: user=teamuser
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Team/add_roles
Request samples
uapi --output=jsonpretty \
  --user=username \
  Team \
  add_roles \
  user='teamuser' \
  role='database'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "add_roles",
  • "module": "Team",
  • "result": {
    • "data": { },
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}