---
title: "POST /{tenantID}/getObjectsByObjectIds"
method: POST
path: "/{tenantID}/getObjectsByObjectIds"
tags: ["Objects"]
---

# POST /{tenantID}/getObjectsByObjectIds

`POST /{tenantID}/getObjectsByObjectIds`

Gets the directory objects specified in a list of object IDs. You can also specify which resource collections (users, groups, etc.) should be searched by specifying the optional types parameter.

## Path parameters

- `tenantID` string, required

## Query parameters

- `api-version` string, required

## Request body

- GetObjectsParameters — Request parameters for the GetObjectsByObjectIds API.
  - `objectIds` string[] — The requested object IDs.
  - `types` string[] — The requested object types.
  - `includeDirectoryObjectReferences` boolean — If true, also searches for object IDs in the partner tenant.

## Response `200`

OK. The operation was successful.

- DirectoryObjectListResult — DirectoryObject list operation result.
  - `value` DirectoryObject[] — A collection of DirectoryObject.
    - `objectId` string — The object ID.
    - `objectType` string, required — The object type.
    - `deletionTimestamp` string, date-time, nullable — The time at which the directory object was deleted.
  - `odata.nextLink` string — The URL to get the next set of results.

---

[API](https://skmtc.net/azure/apis/graphrbacmanagementclient.md) · [All operations](https://skmtc.net/azure/apis/graphrbacmanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/graphrbacmanagementclient/revisions/71d95005600e/schema)
