Set roles for a team user

This function sets roles for a team user.

Note:

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

SecurityBasicAuth
Request
query Parameters
user
required
string

The username of the team user.

Example: user=teamuser
role
string

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

Example: role=database
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/set_roles
Request samples
uapi --output=jsonpretty \
  --user=username \
  Team \
  set_roles \
  user='teamuser'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "set_roles",
  • "module": "Team",
  • "result": {
    • "data": { },
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}