Adding Restore Operators
You can add restore operators to a restore operator role with the specified ID.
Request
POST https://<hostname>:4443/v6/RbacRoles/{roleId}/operators |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameter must be specified in the URL of the request:
Parameter | Type | Description |
---|---|---|
roleId | string | Specifies the identification number of the restore operator role. For more information on how to get this parameter, see Getting Restore Operator Roles. |
Request Body
The request body must contain the following properties:
Property | Type | Description |
---|---|---|
type | string | Specifies the type of an object that you want to add as a restore operator. The following types are available:
|
user | Specifies one or more users that you want to add as a restore operator. | |
group | Specifies one or more groups that you want to add as a restore operator. |
Request Example
Request: POST https://abc.tech.local:4443/v6/RbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9/operators
Request Header: Authorization: Bearer <Access-Token>
Request Body: [ { "type": "User", "user": { "id": "6c6d2495-ca27-4b4a-8c93-956bacb8b4b400000000-0000-0000-0000-000000000000", "displayName": "Restore Operator", "name": "restore_operator@abc.onmicrosoft.com", "type": "User" } }, { "type": "Group", "group": { "id": "7ace610a-ded5-4b14-8946-f039422b631d00000000-0000-0000-0000-000000000000", "displayName": "Group 2", "name": "group2@abc.onmicrosoft.com", "type": "Office365" } } ] |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 OK.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
---|---|
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
None.