Skip To Content
ArcGIS Developer
Dashboard

Remove Roles

Description

This operation removes roles that have been previously assigned to a user account. This operation is supported only when the user and role store supports reads and writes.

Request parameters

ParameterDescription
username

The username of the user from which the roles are being removed.

Example

username=jwhite
roles

A comma-separated list of role names assigned to the user.

Example

roles=editors,planners
f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

Below is a sample encoded POST request for removeRoles:


POST /webadaptor/admin/security/users/removeRoles HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

username=jwhite&roles=editors,planners&f=json

JSON Response example

{"status": "success"}