Skip to content

Latest commit

 

History

History
158 lines (121 loc) · 5.53 KB

synchronization-directorydefinition-discover.md

File metadata and controls

158 lines (121 loc) · 5.53 KB
title description ms.localizationpriority author ms.subservice doc_type
directoryDefinition: discover
Discover the latest schema definition for provisioning to an application.
medium
ArvindHarinder1
entra-applications
apiPageType

directoryDefinition: discover

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Discover the latest schema definition for provisioning to an application.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

[!INCLUDE rbac-synchronization-apis]

HTTP request

POST /servicePrincipals/{id}/synchronization/jobs/{jobId}/schema/directories/{directoryId}/discover

Request headers

Header Value
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response with a directoryDefinition object.

Example

Request

The following example shows a request.

POST https://graph.microsoft.com/beta/servicePrincipals/{id}/synchronization/jobs/{jobId}/schema/directories/{directoryId}/discover

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-type: application/json

{
  "discoverabilities": "AttributeNames, AttributeDataTypes",
  "discoveryDateTime": "2019-03-20T15:47:50.4707552Z",
  "id": "directoryDefinitionId",
  "objects": [
    {
      "name": "User",
      "attributes": [
        {
          "name": "Id",
          "type": "String"
        },
        {
          "name": "FirstName",
          "type": "String"
        },
        {
          "name": "CustomExendedAttribute",
          "type": "String"
        }
      ]
    }
  ],
  "version": "bf8c03ac-d45e-47fe-b3a1-711a9418b2b1"
}