Microsoft Graph devices.directoryObject API

The devices.directoryObject API from Microsoft Graph — 50 operation(s) for devices.directoryobject.

Operations 54

GET /devices/{device-id}/memberOf Microsoft Graph List device memberships #
GET /devices/{device-id}/memberOf/{directoryObject-id} Microsoft Graph Get memberOf from devices #
GET /devices/{device-id}/memberOf/{directoryObject-id}/graph.administrativeUnit Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit #
GET /devices/{device-id}/memberOf/{directoryObject-id}/graph.group Microsoft Graph List device memberships #
GET /devices/{device-id}/memberOf/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/memberOf/graph.administrativeUnit Microsoft Graph Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection #
GET /devices/{device-id}/memberOf/graph.administrativeUnit/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/memberOf/graph.group Microsoft Graph List device memberships #
GET /devices/{device-id}/memberOf/graph.group/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/registeredOwners Microsoft Graph List registeredOwners #
DELETE /devices/{device-id}/registeredOwners/{directoryObject-id}/$ref Microsoft Graph Delete registeredOwner #
GET /devices/{device-id}/registeredOwners/{directoryObject-id}/graph.appRoleAssignment Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment #
GET /devices/{device-id}/registeredOwners/{directoryObject-id}/graph.endpoint Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint #
GET /devices/{device-id}/registeredOwners/{directoryObject-id}/graph.servicePrincipal Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal #
GET /devices/{device-id}/registeredOwners/{directoryObject-id}/graph.user Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.user #
GET /devices/{device-id}/registeredOwners/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/registeredOwners/$ref Microsoft Graph List registeredOwners #
POST /devices/{device-id}/registeredOwners/$ref Microsoft Graph Create registeredOwner #
DELETE /devices/{device-id}/registeredOwners/$ref Microsoft Graph Delete registeredOwner #
GET /devices/{device-id}/registeredOwners/graph.appRoleAssignment Microsoft Graph Get the items of type microsoft.graph.appRoleAssignment in the microsoft.graph.directoryObject collection #
GET /devices/{device-id}/registeredOwners/graph.appRoleAssignment/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/registeredOwners/graph.endpoint Microsoft Graph Get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection #
GET /devices/{device-id}/registeredOwners/graph.endpoint/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/registeredOwners/graph.servicePrincipal Microsoft Graph Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection #
GET /devices/{device-id}/registeredOwners/graph.servicePrincipal/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/registeredOwners/graph.user Microsoft Graph Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection #
GET /devices/{device-id}/registeredOwners/graph.user/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/registeredUsers Microsoft Graph List registeredUsers #
DELETE /devices/{device-id}/registeredUsers/{directoryObject-id}/$ref Microsoft Graph Delete registeredUser #
GET /devices/{device-id}/registeredUsers/{directoryObject-id}/graph.appRoleAssignment Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment #
GET /devices/{device-id}/registeredUsers/{directoryObject-id}/graph.endpoint Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint #
GET /devices/{device-id}/registeredUsers/{directoryObject-id}/graph.servicePrincipal Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal #
GET /devices/{device-id}/registeredUsers/{directoryObject-id}/graph.user Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.user #
GET /devices/{device-id}/registeredUsers/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/registeredUsers/$ref Microsoft Graph List registeredUsers #
POST /devices/{device-id}/registeredUsers/$ref Microsoft Graph Create registeredUser #
DELETE /devices/{device-id}/registeredUsers/$ref Microsoft Graph Delete registeredUser #
GET /devices/{device-id}/registeredUsers/graph.appRoleAssignment Microsoft Graph Get the items of type microsoft.graph.appRoleAssignment in the microsoft.graph.directoryObject collection #
GET /devices/{device-id}/registeredUsers/graph.appRoleAssignment/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/registeredUsers/graph.endpoint Microsoft Graph Get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection #
GET /devices/{device-id}/registeredUsers/graph.endpoint/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/registeredUsers/graph.servicePrincipal Microsoft Graph Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection #
GET /devices/{device-id}/registeredUsers/graph.servicePrincipal/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/registeredUsers/graph.user Microsoft Graph Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection #
GET /devices/{device-id}/registeredUsers/graph.user/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/transitiveMemberOf Microsoft Graph List device transitive memberships #
GET /devices/{device-id}/transitiveMemberOf/{directoryObject-id} Microsoft Graph Get transitiveMemberOf from devices #
GET /devices/{device-id}/transitiveMemberOf/{directoryObject-id}/graph.administrativeUnit Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit #
GET /devices/{device-id}/transitiveMemberOf/{directoryObject-id}/graph.group Microsoft Graph List device transitive memberships #
GET /devices/{device-id}/transitiveMemberOf/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/transitiveMemberOf/graph.administrativeUnit Microsoft Graph Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection #
GET /devices/{device-id}/transitiveMemberOf/graph.administrativeUnit/$count Microsoft Graph Get the number of the resource #
GET /devices/{device-id}/transitiveMemberOf/graph.group Microsoft Graph List device transitive memberships #
GET /devices/{device-id}/transitiveMemberOf/graph.group/$count Microsoft Graph Get the number of the resource #

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

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-graph-devices-directoryobject-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-graph-devices-directoryobject-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Graph Admin Admin.admin Devices.directory Object 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: devices.directoryObject
paths:
  /devices/{device-id}/memberOf:
    description: Provides operations to manage the memberOf property of the microsoft.graph.device entity.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph List device memberships
      description: Get groups and administrative units that this device is a direct member of. This operation is not transitive.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/device-list-memberof?view=graph-rest-1.0
      operationId: devices.ListMemberOf
      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
  /devices/{device-id}/memberOf/{directoryObject-id}:
    description: Provides operations to manage the memberOf property of the microsoft.graph.device entity.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph Get memberOf from devices
      description: Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand.
      operationId: devices.GetMemberOf
      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: Retrieved 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
  /devices/{device-id}/memberOf/{directoryObject-id}/graph.administrativeUnit:
    description: Casts the previous resource to administrativeUnit.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
      operationId: devices.GetMemberOf.AsAdministrativeUnit
      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.administrativeUnit'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /devices/{device-id}/memberOf/{directoryObject-id}/graph.group:
    description: Casts the previous resource to group.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph List device memberships
      description: Get groups and administrative units that this device is a direct member of. This operation is not transitive.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/device-list-memberof?view=graph-rest-1.0
      operationId: devices.GetMemberOf.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'
  /devices/{device-id}/memberOf/$count:
    description: Provides operations to count the resources in the collection.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph Get the number of the resource
      operationId: devices.memberOf.GetCount-bd14
      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/search'
      - $ref: '#/components/parameters/filter'
      responses:
        2XX:
          $ref: '#/components/responses/ODataCountResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /devices/{device-id}/memberOf/graph.administrativeUnit:
    description: Casts the previous resource to administrativeUnit.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
      operationId: devices.ListMemberOf.AsAdministrativeUnit
      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.administrativeUnitCollectionResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
  /devices/{device-id}/memberOf/graph.administrativeUnit/$count:
    description: Provides operations to count the resources in the collection.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph Get the number of the resource
      operationId: devices.MemberOf.GetCount.AsAdministrativeUnit-dd3f
      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/search'
      - $ref: '#/components/parameters/filter'
      responses:
        2XX:
          $ref: '#/components/responses/ODataCountResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /devices/{device-id}/memberOf/graph.group:
    description: Casts the previous resource to group.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph List device memberships
      description: Get groups and administrative units that this device is a direct member of. This operation is not transitive.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/device-list-memberof?view=graph-rest-1.0
      operationId: devices.ListMemberOf.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
      - $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.groupCollectionResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
  /devices/{device-id}/memberOf/graph.group/$count:
    description: Provides operations to count the resources in the collection.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph Get the number of the resource
      operationId: devices.MemberOf.GetCount.AsGroup-3872
      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/search'
      - $ref: '#/components/parameters/filter'
      responses:
        2XX:
          $ref: '#/components/responses/ODataCountResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /devices/{device-id}/registeredOwners:
    description: Provides operations to manage the registeredOwners property of the microsoft.graph.device entity.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph List registeredOwners
      description: Retrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/device-list-registeredowners?view=graph-rest-1.0
      operationId: devices.ListRegisteredOwners
      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
  /devices/{device-id}/registeredOwners/{directoryObject-id}/$ref:
    description: Provides operations to manage the collection of device entities.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    delete:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph Delete registeredOwner
      description: Remove a user as a registered owner of the device.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/device-delete-registeredowners?view=graph-rest-1.0
      operationId: devices.registeredOwners.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
  /devices/{device-id}/registeredOwners/{directoryObject-id}/graph.appRoleAssignment:
    description: Casts the previous resource to appRoleAssignment.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment
      operationId: devices.GetRegisteredOwners.AsAppRoleAssignment
      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.appRoleAssignment'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /devices/{device-id}/registeredOwners/{directoryObject-id}/graph.endpoint:
    description: Casts the previous resource to endpoint.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint
      operationId: devices.GetRegisteredOwners.AsEndpoint
      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.endpoint'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /devices/{device-id}/registeredOwners/{directoryObject-id}/graph.servicePrincipal:
    description: Casts the previous resource to servicePrincipal.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal
      operationId: devices.GetRegisteredOwners.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'
  /devices/{device-id}/registeredOwners/{directoryObject-id}/graph.user:
    description: Casts the previous resource to user.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    - name: directoryObject-id
      in: path
      description: The unique identifier of directoryObject
      required: true
      schema:
        type: string
      x-ms-docs-key-type: directoryObject
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.user
      operationId: devices.GetRegisteredOwners.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'
  /devices/{device-id}/registeredOwners/$count:
    description: Provides operations to count the resources in the collection.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph Get the number of the resource
      operationId: devices.registeredOwners.GetCount-d4e7
      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/search'
      - $ref: '#/components/parameters/filter'
      responses:
        2XX:
          $ref: '#/components/responses/ODataCountResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /devices/{device-id}/registeredOwners/$ref:
    description: Provides operations to manage the collection of device entities.
    parameters:
    - name: device-id
      in: path
      description: The unique identifier of device
      required: true
      schema:
        type: string
      x-ms-docs-key-type: device
    get:
      tags:
      - devices.directoryObject
      summary: Microsoft Graph List registeredOwners
      description: Retrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/device-list-registeredowners?view=graph-rest-1.0
      operationId: devices.ListRefRegisteredOwners
      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 $cou

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