Adding Objects to Manage

In this article

    You can add objects to a restore operator role with the specified ID. Restore operators will be able to explore and restore data from backups created by Veeam Backup for Microsoft 365 for these objects.

    Request

    POST https://<hostname>:4443/v6/RbacRoles/{roleId}/selectedItems

    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 to objects to manage. The following types are available:

    • User
    • Site
    • Group

    user

    User

    Specifies one or more users that you want to add to objects to manage.

    site

    Site

    Specifies one or more sites that you want to add to objects to manage.

    group

    Group

    Specifies one or more groups that you want to add to objects to manage.

    Request Example

    Request:

    POST https://abc.tech.local:4443/v6/RbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9/selectedItems

     

    Request Header:

    Authorization: Bearer <Access-Token>

     

    Request Body:

    [

     {

       "type": "User",

       "user": {

         "id": "768a2c08-1b41-47e7-8cc2-a4ac55e2eced00000000-0000-0000-0000-000000000000",

         "displayName": "User1",

         "name": "user1@abc.onmicrosoft.com",

         "type": "User"

       }

     },

     {

       "type": "User",    

       "user": {

         "id": "50501c8a-e84f-40d7-8381-e97089f7491c00000000-0000-0000-0000-000000000000",

         "displayName": "User2",

         "name": "user2@abc.onmicrosoft.com",

         "type": "User"

       }

     },

     {

       "type": "User",

       "user": {

         "id": "9bdd0fca-7210-450e-bfeb-c0dca2e1b36c00000000-0000-0000-0000-000000000000",

         "displayName": "User3",

         "name": "user3@abc.onmicrosoft.com",

         "type": "User"

       }

     },

     {

       "type": "Group",

       "group": {

         "id": "95e4e659-9039-45ef-826c-d1ba4b8e5d2500000000-0000-0000-0000-000000000000",

         "displayName": "ABC",

         "name": "abc1@abc.onmicrosoft.com",

         "type": "Office365"

       }

     },

     {

       "type": "Site",

       "site": {

         "id": "5359c4b5-5e3f-4fbb-a97f-a916bcba00a1ea863003-4637-4414-ad37-1757dd8f85cc",

         "url": "https://abc.sharepoint.com/sites/ABC_site",

         "title": "ABC_site",

         "isCloud": true,

         "isPersonal": false

       }

     }

    ]

    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.