naftiko: 1.0.0-alpha2 info: label: Microsoft Graph Users — copilot.aiUser description: 'Microsoft Graph Users — copilot.aiUser. 10 operations. Lead operation: Microsoft Graph Get users from copilot. Self-contained Naftiko capability covering one Microsoft Graph business surface.' tags: - Microsoft Graph - copilot.aiUser created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_GRAPH_API_KEY: MICROSOFT_GRAPH_API_KEY capability: consumes: - type: http namespace: users-copilot-aiuser baseUri: '' description: Microsoft Graph Users — copilot.aiUser business capability. Self-contained, no shared references. resources: - name: copilot-users path: /copilot/users operations: - name: copilotlistusers method: GET description: Microsoft Graph Get users from copilot outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $orderby in: query type: array description: Order items by property values - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: copilotcreateusers method: POST description: Microsoft Graph Create new navigation property to users for copilot outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: copilot-users-$count path: /copilot/users/$count operations: - name: copilotusersgetcount2ed5 method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: copilot-users-aiUser-id path: /copilot/users/{aiUser-id} operations: - name: copilotgetusers method: GET description: Microsoft Graph Get users from copilot outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: copilotupdateusers method: PATCH description: Microsoft Graph Update the navigation property users in copilot outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: copilotdeleteusers method: DELETE description: Microsoft Graph Delete navigation property users for copilot outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: If-Match in: header type: string description: ETag - name: copilot-users-aiUser-id-interactionHistory path: /copilot/users/{aiUser-id}/interactionHistory operations: - name: copilotusersgetinteractionhistory method: GET description: Microsoft Graph Get interactionHistory from copilot outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: copilotusersupdateinteractionhistory method: PATCH description: Microsoft Graph Update the navigation property interactionHistory in copilot outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: copilotusersdeleteinteractionhistory method: DELETE description: Microsoft Graph Delete navigation property interactionHistory for copilot outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: If-Match in: header type: string description: ETag - name: copilot-users-aiUser-id-interactionHistory-getAllEnterpriseInteractions() path: /copilot/users/{aiUser-id}/interactionHistory/getAllEnterpriseInteractions() operations: - name: copilotusersaiuserinteractionhistorygetallenterpriseinteractions method: GET description: Microsoft Graph Invoke function getAllEnterpriseInteractions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $select in: query type: array description: Select properties to be returned - name: $orderby in: query type: array description: Order items by property values - name: $expand in: query type: array description: Expand related entities exposes: - type: rest namespace: users-copilot-aiuser-rest port: 8080 description: REST adapter for Microsoft Graph Users — copilot.aiUser. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/copilot/users name: copilot-users description: REST surface for copilot-users. operations: - method: GET name: copilotlistusers description: Microsoft Graph Get users from copilot call: users-copilot-aiuser.copilotlistusers with: $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: POST name: copilotcreateusers description: Microsoft Graph Create new navigation property to users for copilot call: users-copilot-aiuser.copilotcreateusers with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/copilot/users/count name: copilot-users-count description: REST surface for copilot-users-$count. operations: - method: GET name: copilotusersgetcount2ed5 description: Microsoft Graph Get the number of the resource call: users-copilot-aiuser.copilotusersgetcount2ed5 outputParameters: - type: object mapping: $. - path: /v1/copilot/users/{aiuser-id} name: copilot-users-aiuser-id description: REST surface for copilot-users-aiUser-id. operations: - method: GET name: copilotgetusers description: Microsoft Graph Get users from copilot call: users-copilot-aiuser.copilotgetusers with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: copilotupdateusers description: Microsoft Graph Update the navigation property users in copilot call: users-copilot-aiuser.copilotupdateusers with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: copilotdeleteusers description: Microsoft Graph Delete navigation property users for copilot call: users-copilot-aiuser.copilotdeleteusers with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - path: /v1/copilot/users/{aiuser-id}/interactionhistory name: copilot-users-aiuser-id-interactionhistory description: REST surface for copilot-users-aiUser-id-interactionHistory. operations: - method: GET name: copilotusersgetinteractionhistory description: Microsoft Graph Get interactionHistory from copilot call: users-copilot-aiuser.copilotusersgetinteractionhistory with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: copilotusersupdateinteractionhistory description: Microsoft Graph Update the navigation property interactionHistory in copilot call: users-copilot-aiuser.copilotusersupdateinteractionhistory with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: copilotusersdeleteinteractionhistory description: Microsoft Graph Delete navigation property interactionHistory for copilot call: users-copilot-aiuser.copilotusersdeleteinteractionhistory with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - path: /v1/copilot/users/{aiuser-id}/interactionhistory/getallenterpriseinteractions name: copilot-users-aiuser-id-interactionhistory-getallenterpriseinteractions description: REST surface for copilot-users-aiUser-id-interactionHistory-getAllEnterpriseInteractions(). operations: - method: GET name: copilotusersaiuserinteractionhistorygetallenterpriseinteractions description: Microsoft Graph Invoke function getAllEnterpriseInteractions call: users-copilot-aiuser.copilotusersaiuserinteractionhistorygetallenterpriseinteractions with: $select: rest.$select $orderby: rest.$orderby $expand: rest.$expand outputParameters: - type: object mapping: $. - type: mcp namespace: users-copilot-aiuser-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph Users — copilot.aiUser. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-graph-get-users-copilot description: Microsoft Graph Get users from copilot hints: readOnly: true destructive: false idempotent: true call: users-copilot-aiuser.copilotlistusers with: $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-create-new-navigation description: Microsoft Graph Create new navigation property to users for copilot hints: readOnly: false destructive: false idempotent: false call: users-copilot-aiuser.copilotcreateusers with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-get-number-resource description: Microsoft Graph Get the number of the resource hints: readOnly: true destructive: false idempotent: true call: users-copilot-aiuser.copilotusersgetcount2ed5 outputParameters: - type: object mapping: $. - name: microsoft-graph-get-users-copilot-2 description: Microsoft Graph Get users from copilot hints: readOnly: true destructive: false idempotent: true call: users-copilot-aiuser.copilotgetusers with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-update-navigation-property description: Microsoft Graph Update the navigation property users in copilot hints: readOnly: false destructive: false idempotent: true call: users-copilot-aiuser.copilotupdateusers with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-delete-navigation-property description: Microsoft Graph Delete navigation property users for copilot hints: readOnly: false destructive: true idempotent: true call: users-copilot-aiuser.copilotdeleteusers with: If-Match: tools.If-Match outputParameters: - type: object mapping: $. - name: microsoft-graph-get-interactionhistory-copilot description: Microsoft Graph Get interactionHistory from copilot hints: readOnly: true destructive: false idempotent: true call: users-copilot-aiuser.copilotusersgetinteractionhistory with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-update-navigation-property-2 description: Microsoft Graph Update the navigation property interactionHistory in copilot hints: readOnly: false destructive: false idempotent: true call: users-copilot-aiuser.copilotusersupdateinteractionhistory with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-delete-navigation-property-2 description: Microsoft Graph Delete navigation property interactionHistory for copilot hints: readOnly: false destructive: true idempotent: true call: users-copilot-aiuser.copilotusersdeleteinteractionhistory with: If-Match: tools.If-Match outputParameters: - type: object mapping: $. - name: microsoft-graph-invoke-function-getallenterpriseinteractions description: Microsoft Graph Invoke function getAllEnterpriseInteractions hints: readOnly: true destructive: false idempotent: true call: users-copilot-aiuser.copilotusersaiuserinteractionhistorygetallenterpriseinteractions with: $select: tools.$select $orderby: tools.$orderby $expand: tools.$expand outputParameters: - type: object mapping: $.