Skip To Content

Add Users To Role

Description

This is operation assigns a role to multiple users.

Request parameters

ParameterDetails
rolename

The name of the user.

Example

rolename=editors
users

A comma-separated list of user names. Each user name must exist in the user store.

Example

users=njones,aturing
f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

Below is a sample POST request for addUsersToRole:


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

rolename=editors&users=njones,aturing&f=json

JSON Response example

{"status": "success"}