Getting Objects to Manage

You can get a resource representation of objects added to a restore operator role with the specified ID. Restore operators are allowed to explore and restore data from backups created by Veeam Backup for Microsoft 365 for these objects.

Request

GET 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

None.

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

In the response body, the server returns a resource representation of the /RbacRoles/{roleId}/selectedItems collection resource. The response body contains the following properties:

Property

Type

Description

user

User

Specifies a user added to the list of objects to manage.

site

Site

Specifies a site added to the list of objects to manage.

group

Group

Specifies a group added to the list of objects to manage.

id

String

Specifies an identification number of the managed object.

type

String

Type of the managed object. The following types are available:

  • User
  • Site
  • Group

_links

Dictionary of string [key] and Object [value]

Links to related resources (navigation property).

Example

The example returns a resource representation of the objects to manage added to the restore operator role with the ID 97edf1c9-74a1-480d-8b60-29b9ef331bd9. Restore operators are allowed to explore and restore data from backups created by Veeam Backup for Microsoft 365 for these objects.

Request:

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

 

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200 OK

 

Response Body:

[

 {

   "type": "User",

   "user": {

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

     "displayName": "User1",

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

     "type": "User"

   },

   "id": "a4e58481-9bd5-4d41-9f46-01c14862f6f4768a2c08-1b41-47e7-8cc2-a4ac55e2eced00000000-0000-0000-0000-000000000000",

   "_links": {

     "self": {

       "href": "/v6/rbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9/selectedItems/a4e58481-9bd5-4d41-9f46-01c14862f6f4768a2c08-1b41-47e7-8cc2-a4ac55e2eced00000000-0000-0000-0000-000000000000"

     },

     "rbacRole": {

       "href": "/v6/rbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9"

     }

   }

 },

 {

   "type": "User",

   "user": {

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

     "displayName": "User2",

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

     "type": "User"

   },

   "id": "a4e58481-9bd5-4d41-9f46-01c14862f6f450501c8a-e84f-40d7-8381-e97089f7491c00000000-0000-0000-0000-000000000000",

   "_links": {

     "self": {

       "href": "/v6/rbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9/selectedItems/a4e58481-9bd5-4d41-9f46-01c14862f6f450501c8a-e84f-40d7-8381-e97089f7491c00000000-0000-0000-0000-000000000000"

     },

     "rbacRole": {

       "href": "/v6/rbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9"

     }

   }

 },

 {

   "type": "User",

   "user": {

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

     "displayName": "User3",

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

     "type": "User"

   },

   "id": "a4e58481-9bd5-4d41-9f46-01c14862f6f49bdd0fca-7210-450e-bfeb-c0dca2e1b36c00000000-0000-0000-0000-000000000000",

   "_links": {

     "self": {

       "href": "/v6/rbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9/selectedItems/a4e58481-9bd5-4d41-9f46-01c14862f6f49bdd0fca-7210-450e-bfeb-c0dca2e1b36c00000000-0000-0000-0000-000000000000"

     },

     "rbacRole": {

       "href": "/v6/rbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9"

     }

   }

 },

 {

   "type": "User",

   "user": {

     "id": "efc04e81-0531-4d6e-bd36-13ff6b9040f300000000-0000-0000-0000-000000000000",

     "displayName": "User4",

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

     "type": "User"

   },

   "id": "a4e58481-9bd5-4d41-9f46-01c14862f6f4efc04e81-0531-4d6e-bd36-13ff6b9040f300000000-0000-0000-0000-000000000000",

   "_links": {

     "self": {

       "href": "/v6/rbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9/selectedItems/a4e58481-9bd5-4d41-9f46-01c14862f6f4efc04e81-0531-4d6e-bd36-13ff6b9040f300000000-0000-0000-0000-000000000000"

     },

     "rbacRole": {

       "href": "/v6/rbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9"

     }

   }

 },

 {

   "type": "Group",

   "id": "b4538767-6a9f-4e40-88e6-6e216980fc2395e4e659-9039-45ef-826c-d1ba4b8e5d2500000000-0000-0000-0000-000000000000",

   "_links": {

     "self": {

       "href": "/v6/rbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9/selectedItems/b4538767-6a9f-4e40-88e6-6e216980fc2395e4e659-9039-45ef-826c-d1ba4b8e5d2500000000-0000-0000-0000-000000000000"

     },

     "rbacRole": {

       "href": "/v6/rbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9"

     }

   },

   "group": {

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

     "displayName": "ABC",

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

     "type": "Office365"

   }

 },

 {

   "type": "Site",

   "id": "46c7c3c7-338e-4a28-b2de-e12c6936c9795359c4b5-5e3f-4fbb-a97f-a916bcba00a1ea863003-4637-4414-ad37-1757dd8f85cc",

   "_links": {

     "self": {

       "href": "/v6/rbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9/selectedItems/46c7c3c7-338e-4a28-b2de-e12c6936c9795359c4b5-5e3f-4fbb-a97f-a916bcba00a1ea863003-4637-4414-ad37-1757dd8f85cc"

     },

     "rbacRole": {

       "href": "/v6/rbacRoles/97edf1c9-74a1-480d-8b60-29b9ef331bd9"

     }

   },

   "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

   }

 }

]