Microsoft Graph directory.administrativeUnit API

The directory.administrativeUnit API from Microsoft Graph — 32 operation(s) for directory.administrativeunit.

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/admin?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/agreementacceptance?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/agreement?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/teamsapp?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/application?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/applicationtemplate?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/azure-ad-auditlog-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/authenticationmethodconfiguration?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/authenticationmethodspolicy?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/certificatebasedauthconfiguration?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/chat?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/communications-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/complianceapioverview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/externalconnectors-externalconnection?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/contact?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/contract?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/copilot-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/datapolicyoperation?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/intune-apps-conceptual?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/intune-device-conceptual?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/device?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/directory?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/domaindnsrecord?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/domain?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/drive?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/education-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/employee-experience-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/externalconnectors-external?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/filter-query-parameter
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/excel?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/grouplifecyclepolicy?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/groups-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/groupsetting?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/groupsettingtemplate?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/identitycontainer?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/informationprotection?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/invitation?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/users?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/oauth2permissiongrant?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/organization?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/resourcespecificpermissiongrant?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/place?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/planner-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/policy-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/print?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/privacy?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/report?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/rolemanagement?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/schemaextension?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/scopedrolemembership?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/search-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/serviceprincipal?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/shares?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/sharepoint?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/solutions-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/filestorage?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/subscribedsku?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/subscription?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/teamwork?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/tenantrelationship?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/auth/auth-concepts
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/workplace?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/sitepage?view=graph-rest-1.0

Specifications

Other Resources

OpenAPI Specification

microsoft-graph-directory-administrativeunit-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Microsoft Graph Admin Admin.admin directory.administrativeUnit API
  description: 'Microsoft Graph API for managing administrative resources in Microsoft Entra ID.

    This API enables administrators to manage Microsoft Edge browser settings, Internet Explorer mode configurations,

    site lists, shared browser sites, Microsoft 365 Apps installation options, people insights, service announcements,

    SharePoint settings, Copilot administration, directory administrative units, and admin consent policies.'
  version: 1.0.0
  contact:
    name: Microsoft Graph API Support
    url: https://developer.microsoft.com/graph
servers:
- url: https://graph.microsoft.com/v1.0
  description: Microsoft Graph API v1.0 endpoint
tags:
- name: directory.administrativeUnit
paths:
  /directory/administrativeUnits:
    description: Provides operations to manage the administrativeUnits property of the microsoft.graph.directory entity.
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph List administrativeUnits
      description: Retrieve a list of administrativeUnit objects.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/directory-list-administrativeunits?view=graph-rest-1.0
      operationId: directory.ListAdministrativeUnits
      parameters:
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/search'
      - $ref: '#/components/parameters/filter'
      - $ref: '#/components/parameters/count'
      - name: $orderby
        in: query
        description: Order items by property values
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          $ref: '#/components/responses/microsoft.graph.administrativeUnitCollectionResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
      x-ms-docs-operation-type: operation
    post:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Create administrativeUnit
      description: Create a new administrativeUnit.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/directory-post-administrativeunits?view=graph-rest-1.0
      operationId: directory.CreateAdministrativeUnits
      requestBody:
        description: New navigation property
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.administrativeUnit'
        required: true
      responses:
        2XX:
          description: Created navigation property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.administrativeUnit'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /directory/administrativeUnits/{administrativeUnit-id}:
    description: Provides operations to manage the administrativeUnits property of the microsoft.graph.directory entity.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Get administrativeUnit
      description: Retrieve the properties and relationships of an administrativeUnit object. The administrativeUnit resource supports extensions, which also allows you to use the GET operation to get custom properties and extension data in an administrativeUnit instance.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/administrativeunit-get?view=graph-rest-1.0
      operationId: directory.GetAdministrativeUnits
      parameters:
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Retrieved navigation property
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.administrativeUnit'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    patch:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Update administrativeUnit
      description: Update the properties of an administrativeUnit object.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/administrativeunit-update?view=graph-rest-1.0
      operationId: directory.UpdateAdministrativeUnits
      requestBody:
        description: New navigation property values
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.administrativeUnit'
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.administrativeUnit'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    delete:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Delete administrativeUnit
      description: Delete an administrativeUnit.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/administrativeunit-delete?view=graph-rest-1.0
      operationId: directory.DeleteAdministrativeUnits
      parameters:
      - name: If-Match
        in: header
        description: ETag
        schema:
          type: string
      responses:
        '204':
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /directory/administrativeUnits/{administrativeUnit-id}/extensions:
    description: Provides operations to manage the extensions property of the microsoft.graph.administrativeUnit entity.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Get extensions from directory
      description: The collection of open extensions defined for this administrative unit. Nullable.
      operationId: directory.administrativeUnits.ListExtensions
      parameters:
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/search'
      - $ref: '#/components/parameters/filter'
      - $ref: '#/components/parameters/count'
      - name: $orderby
        in: query
        description: Order items by property values
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          $ref: '#/components/responses/microsoft.graph.extensionCollectionResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
      x-ms-docs-operation-type: operation
    post:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Create new navigation property to extensions for directory
      operationId: directory.administrativeUnits.CreateExtensions
      requestBody:
        description: New navigation property
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.extension'
        required: true
      responses:
        2XX:
          description: Created navigation property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.extension'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /directory/administrativeUnits/{administrativeUnit-id}/extensions/{extension-id}:
    description: Provides operations to manage the extensions property of the microsoft.graph.administrativeUnit entity.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    - name: extension-id
      in: path
      description: The unique identifier of extension
      required: true
      schema:
        type: string
      x-ms-docs-key-type: extension
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Get extensions from directory
      description: The collection of open extensions defined for this administrative unit. Nullable.
      operationId: directory.administrativeUnits.GetExtensions
      parameters:
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Retrieved navigation property
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.extension'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    patch:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Update the navigation property extensions in directory
      operationId: directory.administrativeUnits.UpdateExtensions
      requestBody:
        description: New navigation property values
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.extension'
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.extension'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    delete:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Delete navigation property extensions for directory
      operationId: directory.administrativeUnits.DeleteExtensions
      parameters:
      - name: If-Match
        in: header
        description: ETag
        schema:
          type: string
      responses:
        '204':
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /directory/administrativeUnits/{administrativeUnit-id}/extensions/$count:
    description: Provides operations to count the resources in the collection.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Get the number of the resource
      operationId: directory.administrativeUnits.extensions.GetCount-48cb
      parameters:
      - $ref: '#/components/parameters/search'
      - $ref: '#/components/parameters/filter'
      responses:
        2XX:
          $ref: '#/components/responses/ODataCountResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /directory/administrativeUnits/{administrativeUnit-id}/members:
    description: Provides operations to manage the members property of the microsoft.graph.administrativeUnit entity.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph List members
      description: Use this API to get the members list (users, groups, or devices) in an administrative unit.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/administrativeunit-list-members?view=graph-rest-1.0
      operationId: directory.administrativeUnits.ListMembers
      parameters:
      - name: ConsistencyLevel
        in: header
        description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        schema:
          type: string
        examples:
          example-1:
            description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
            value: eventual
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/search'
      - $ref: '#/components/parameters/filter'
      - $ref: '#/components/parameters/count'
      - name: $orderby
        in: query
        description: Order items by property values
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          $ref: '#/components/responses/microsoft.graph.directoryObjectCollectionResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
      x-ms-docs-operation-type: operation
    post:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Add a member
      description: Use this API to add a member (user, group, or device) to an administrative unit. Currently it's only possible to add one member at a time to an administrative unit.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/administrativeunit-post-members?view=graph-rest-1.0
      operationId: directory.administrativeUnits.CreateMembers
      requestBody:
        description: New navigation property
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.directoryObject'
        required: true
      responses:
        2XX:
          description: Created navigation property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.directoryObject'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /directory/administrativeUnits/{administrativeUnit-id}/members/{directoryObject-id}/$ref:
    description: Provides operations to manage the collection of directory entities.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    delete:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Remove a member
      description: Use this API to remove a member (user, group, or device) from an administrative unit.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/administrativeunit-delete-members?view=graph-rest-1.0
      operationId: directory.administrativeUnits.members.DeleteRefDirectoryObject
      parameters:
      - name: If-Match
        in: header
        description: ETag
        schema:
          type: string
      responses:
        '204':
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /directory/administrativeUnits/{administrativeUnit-id}/members/{directoryObject-id}/graph.application:
    description: Casts the previous resource to application.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.application
      operationId: directory.administrativeUnits.GetMembers.AsApplication
      parameters:
      - name: ConsistencyLevel
        in: header
        description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        schema:
          type: string
        examples:
          example-1:
            description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
            value: eventual
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Entity result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.application'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /directory/administrativeUnits/{administrativeUnit-id}/members/{directoryObject-id}/graph.device:
    description: Casts the previous resource to device.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.device
      operationId: directory.administrativeUnits.GetMembers.AsDevice
      parameters:
      - name: ConsistencyLevel
        in: header
        description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        schema:
          type: string
        examples:
          example-1:
            description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
            value: eventual
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Entity result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.device'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /directory/administrativeUnits/{administrativeUnit-id}/members/{directoryObject-id}/graph.group:
    description: Casts the previous resource to group.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.group
      operationId: directory.administrativeUnits.GetMembers.AsGroup
      parameters:
      - name: ConsistencyLevel
        in: header
        description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        schema:
          type: string
        examples:
          example-1:
            description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
            value: eventual
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Entity result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.group'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /directory/administrativeUnits/{administrativeUnit-id}/members/{directoryObject-id}/graph.orgContact:
    description: Casts the previous resource to orgContact.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact
      operationId: directory.administrativeUnits.GetMembers.AsOrgContact
      parameters:
      - name: ConsistencyLevel
        in: header
        description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        schema:
          type: string
        examples:
          example-1:
            description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
            value: eventual
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Entity result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.orgContact'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /directory/administrativeUnits/{administrativeUnit-id}/members/{directoryObject-id}/graph.servicePrincipal:
    description: Casts the previous resource to servicePrincipal.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal
      operationId: directory.administrativeUnits.GetMembers.AsServicePrincipal
      parameters:
      - name: ConsistencyLevel
        in: header
        description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        schema:
          type: string
        examples:
          example-1:
            description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
            value: eventual
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Entity result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.servicePrincipal'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /directory/administrativeUnits/{administrativeUnit-id}/members/{directoryObject-id}/graph.user:
    description: Casts the previous resource to user.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.user
      operationId: directory.administrativeUnits.GetMembers.AsUser
      parameters:
      - name: ConsistencyLevel
        in: header
        description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        schema:
          type: string
        examples:
          example-1:
            description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
            value: eventual
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Entity result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.user'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /directory/administrativeUnits/{administrativeUnit-id}/members/$count:
    description: Provides operations to count the resources in the collection.
    parameters:
    - name: administrativeUnit-id
      in: path
      description: The unique identifier of administrativeUnit
      required: true
      schema:
        type: string
      x-ms-docs-key-type: administrativeUnit
    get:
      tags:
      - directory.administrativeUnit
      summary: Microsoft Graph Get the number of the resource
      operationId: directory.administrativeUnits.members.GetCount-777a
      parameters:
      - name: ConsistencyLevel
        in: header
        description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        sc

# --- truncated at 32 KB (1209 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/microsoft-graph/refs/heads/main/openapi/microsoft-graph-directory-administrativeunit-api-openapi.yml