Microsoft Graph · Capability

Microsoft Graph OData Service for namespace microsoft.graph — users.userActivity

Microsoft Graph OData Service for namespace microsoft.graph — users.userActivity. 14 operations. Lead operation: Microsoft Graph Get activities from users. Self-contained Naftiko capability covering one Microsoft Graph business surface.

Run with Naftiko Microsoft Graphusers.userActivity

What You Can Do

GET
Userslistactivities — Microsoft Graph Get activities from users
/v1/users/{user-id}/activities
POST
Userscreateactivities — Microsoft Graph Create new navigation property to activities for users
/v1/users/{user-id}/activities
GET
Usersactivitiesgetcount39cc — Microsoft Graph Get the number of the resource
/v1/users/{user-id}/activities/count
GET
Usersuseractivitiesrecent — Microsoft Graph Invoke function recent
/v1/users/{user-id}/activities/recent
GET
Usersgetactivities — Microsoft Graph Get activities from users
/v1/users/{user-id}/activities/{useractivity-id}
PATCH
Usersupdateactivities — Microsoft Graph Update the navigation property activities in users
/v1/users/{user-id}/activities/{useractivity-id}
DELETE
Usersdeleteactivities — Microsoft Graph Delete navigation property activities for users
/v1/users/{user-id}/activities/{useractivity-id}
GET
Usersactivitieslisthistoryitems — Microsoft Graph Get historyItems from users
/v1/users/{user-id}/activities/{useractivity-id}/historyitems
POST
Usersactivitiescreatehistoryitems — Microsoft Graph Create new navigation property to historyItems for users
/v1/users/{user-id}/activities/{useractivity-id}/historyitems
GET
Usersactivitieshistoryitemsgetcount625e — Microsoft Graph Get the number of the resource
/v1/users/{user-id}/activities/{useractivity-id}/historyitems/count
GET
Usersactivitiesgethistoryitems — Microsoft Graph Get historyItems from users
/v1/users/{user-id}/activities/{useractivity-id}/historyitems/{activityhistoryitem-id}
PATCH
Usersactivitiesupdatehistoryitems — Microsoft Graph Update the navigation property historyItems in users
/v1/users/{user-id}/activities/{useractivity-id}/historyitems/{activityhistoryitem-id}
DELETE
Usersactivitiesdeletehistoryitems — Microsoft Graph Delete navigation property historyItems for users
/v1/users/{user-id}/activities/{useractivity-id}/historyitems/{activityhistoryitem-id}
GET
Usersactivitieshistoryitemsgetactivity — Microsoft Graph Get activity from users
/v1/users/{user-id}/activities/{useractivity-id}/historyitems/{activityhistoryitem-id}/activity

MCP Tools

microsoft-graph-get-activities-users

Microsoft Graph Get activities from users

read-only idempotent
microsoft-graph-create-new-navigation

Microsoft Graph Create new navigation property to activities for users

microsoft-graph-get-number-resource

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-invoke-function-recent

Microsoft Graph Invoke function recent

read-only idempotent
microsoft-graph-get-activities-users-2

Microsoft Graph Get activities from users

read-only idempotent
microsoft-graph-update-navigation-property

Microsoft Graph Update the navigation property activities in users

idempotent
microsoft-graph-delete-navigation-property

Microsoft Graph Delete navigation property activities for users

idempotent
microsoft-graph-get-historyitems-users

Microsoft Graph Get historyItems from users

read-only idempotent
microsoft-graph-create-new-navigation-2

Microsoft Graph Create new navigation property to historyItems for users

microsoft-graph-get-number-resource-2

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-get-historyitems-users-2

Microsoft Graph Get historyItems from users

read-only idempotent
microsoft-graph-update-navigation-property-2

Microsoft Graph Update the navigation property historyItems in users

idempotent
microsoft-graph-delete-navigation-property-2

Microsoft Graph Delete navigation property historyItems for users

idempotent
microsoft-graph-get-activity-users

Microsoft Graph Get activity from users

read-only idempotent

Capability Spec

microsoft-graph-users-useractivity.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph OData Service for namespace microsoft.graph — users.userActivity
  description: 'Microsoft Graph OData Service for namespace microsoft.graph — users.userActivity. 14 operations. Lead operation:
    Microsoft Graph Get activities from users. Self-contained Naftiko capability covering one Microsoft Graph business surface.'
  tags:
  - Microsoft Graph
  - users.userActivity
  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: microsoft-graph-users-useractivity
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Graph OData Service for namespace microsoft.graph — users.userActivity business capability. Self-contained,
      no shared references.
    resources:
    - name: users-user-id-activities
      path: /users/{user-id}/activities
      operations:
      - name: userslistactivities
        method: GET
        description: Microsoft Graph Get activities from users
        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: userscreateactivities
        method: POST
        description: Microsoft Graph Create new navigation property to activities for users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: users-user-id-activities-$count
      path: /users/{user-id}/activities/$count
      operations:
      - name: usersactivitiesgetcount39cc
        method: GET
        description: Microsoft Graph Get the number of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users-user-id-activities-recent()
      path: /users/{user-id}/activities/recent()
      operations:
      - name: usersuseractivitiesrecent
        method: GET
        description: Microsoft Graph Invoke function recent
        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
    - name: users-user-id-activities-userActivity-id
      path: /users/{user-id}/activities/{userActivity-id}
      operations:
      - name: usersgetactivities
        method: GET
        description: Microsoft Graph Get activities from users
        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: usersupdateactivities
        method: PATCH
        description: Microsoft Graph Update the navigation property activities in users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: usersdeleteactivities
        method: DELETE
        description: Microsoft Graph Delete navigation property activities for users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
    - name: users-user-id-activities-userActivity-id-historyItems
      path: /users/{user-id}/activities/{userActivity-id}/historyItems
      operations:
      - name: usersactivitieslisthistoryitems
        method: GET
        description: Microsoft Graph Get historyItems from users
        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: usersactivitiescreatehistoryitems
        method: POST
        description: Microsoft Graph Create new navigation property to historyItems for users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: users-user-id-activities-userActivity-id-historyItems-$count
      path: /users/{user-id}/activities/{userActivity-id}/historyItems/$count
      operations:
      - name: usersactivitieshistoryitemsgetcount625e
        method: GET
        description: Microsoft Graph Get the number of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users-user-id-activities-userActivity-id-historyItems-activityHistoryItem-id
      path: /users/{user-id}/activities/{userActivity-id}/historyItems/{activityHistoryItem-id}
      operations:
      - name: usersactivitiesgethistoryitems
        method: GET
        description: Microsoft Graph Get historyItems from users
        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: usersactivitiesupdatehistoryitems
        method: PATCH
        description: Microsoft Graph Update the navigation property historyItems in users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: usersactivitiesdeletehistoryitems
        method: DELETE
        description: Microsoft Graph Delete navigation property historyItems for users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
    - name: users-user-id-activities-userActivity-id-historyItems-activityHistoryItem-id-act
      path: /users/{user-id}/activities/{userActivity-id}/historyItems/{activityHistoryItem-id}/activity
      operations:
      - name: usersactivitieshistoryitemsgetactivity
        method: GET
        description: Microsoft Graph Get activity from users
        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
  exposes:
  - type: rest
    namespace: microsoft-graph-users-useractivity-rest
    port: 8080
    description: REST adapter for Microsoft Graph OData Service for namespace microsoft.graph — users.userActivity. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/users/{user-id}/activities
      name: users-user-id-activities
      description: REST surface for users-user-id-activities.
      operations:
      - method: GET
        name: userslistactivities
        description: Microsoft Graph Get activities from users
        call: microsoft-graph-users-useractivity.userslistactivities
        with:
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: userscreateactivities
        description: Microsoft Graph Create new navigation property to activities for users
        call: microsoft-graph-users-useractivity.userscreateactivities
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{user-id}/activities/count
      name: users-user-id-activities-count
      description: REST surface for users-user-id-activities-$count.
      operations:
      - method: GET
        name: usersactivitiesgetcount39cc
        description: Microsoft Graph Get the number of the resource
        call: microsoft-graph-users-useractivity.usersactivitiesgetcount39cc
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{user-id}/activities/recent
      name: users-user-id-activities-recent
      description: REST surface for users-user-id-activities-recent().
      operations:
      - method: GET
        name: usersuseractivitiesrecent
        description: Microsoft Graph Invoke function recent
        call: microsoft-graph-users-useractivity.usersuseractivitiesrecent
        with:
          $select: rest.$select
          $orderby: rest.$orderby
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{user-id}/activities/{useractivity-id}
      name: users-user-id-activities-useractivity-id
      description: REST surface for users-user-id-activities-userActivity-id.
      operations:
      - method: GET
        name: usersgetactivities
        description: Microsoft Graph Get activities from users
        call: microsoft-graph-users-useractivity.usersgetactivities
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: usersupdateactivities
        description: Microsoft Graph Update the navigation property activities in users
        call: microsoft-graph-users-useractivity.usersupdateactivities
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: usersdeleteactivities
        description: Microsoft Graph Delete navigation property activities for users
        call: microsoft-graph-users-useractivity.usersdeleteactivities
        with:
          If-Match: rest.If-Match
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{user-id}/activities/{useractivity-id}/historyitems
      name: users-user-id-activities-useractivity-id-historyitems
      description: REST surface for users-user-id-activities-userActivity-id-historyItems.
      operations:
      - method: GET
        name: usersactivitieslisthistoryitems
        description: Microsoft Graph Get historyItems from users
        call: microsoft-graph-users-useractivity.usersactivitieslisthistoryitems
        with:
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: usersactivitiescreatehistoryitems
        description: Microsoft Graph Create new navigation property to historyItems for users
        call: microsoft-graph-users-useractivity.usersactivitiescreatehistoryitems
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{user-id}/activities/{useractivity-id}/historyitems/count
      name: users-user-id-activities-useractivity-id-historyitems-count
      description: REST surface for users-user-id-activities-userActivity-id-historyItems-$count.
      operations:
      - method: GET
        name: usersactivitieshistoryitemsgetcount625e
        description: Microsoft Graph Get the number of the resource
        call: microsoft-graph-users-useractivity.usersactivitieshistoryitemsgetcount625e
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{user-id}/activities/{useractivity-id}/historyitems/{activityhistoryitem-id}
      name: users-user-id-activities-useractivity-id-historyitems-activityhistoryitem-id
      description: REST surface for users-user-id-activities-userActivity-id-historyItems-activityHistoryItem-id.
      operations:
      - method: GET
        name: usersactivitiesgethistoryitems
        description: Microsoft Graph Get historyItems from users
        call: microsoft-graph-users-useractivity.usersactivitiesgethistoryitems
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: usersactivitiesupdatehistoryitems
        description: Microsoft Graph Update the navigation property historyItems in users
        call: microsoft-graph-users-useractivity.usersactivitiesupdatehistoryitems
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: usersactivitiesdeletehistoryitems
        description: Microsoft Graph Delete navigation property historyItems for users
        call: microsoft-graph-users-useractivity.usersactivitiesdeletehistoryitems
        with:
          If-Match: rest.If-Match
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{user-id}/activities/{useractivity-id}/historyitems/{activityhistoryitem-id}/activity
      name: users-user-id-activities-useractivity-id-historyitems-activityhistoryitem-id-act
      description: REST surface for users-user-id-activities-userActivity-id-historyItems-activityHistoryItem-id-act.
      operations:
      - method: GET
        name: usersactivitieshistoryitemsgetactivity
        description: Microsoft Graph Get activity from users
        call: microsoft-graph-users-useractivity.usersactivitieshistoryitemsgetactivity
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-graph-users-useractivity-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph OData Service for namespace microsoft.graph — users.userActivity. One tool
      per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: microsoft-graph-get-activities-users
      description: Microsoft Graph Get activities from users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-users-useractivity.userslistactivities
      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 activities for users
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: microsoft-graph-users-useractivity.userscreateactivities
      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: microsoft-graph-users-useractivity.usersactivitiesgetcount39cc
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-invoke-function-recent
      description: Microsoft Graph Invoke function recent
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-users-useractivity.usersuseractivitiesrecent
      with:
        $select: tools.$select
        $orderby: tools.$orderby
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-activities-users-2
      description: Microsoft Graph Get activities from users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-users-useractivity.usersgetactivities
      with:
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-update-navigation-property
      description: Microsoft Graph Update the navigation property activities in users
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: microsoft-graph-users-useractivity.usersupdateactivities
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-delete-navigation-property
      description: Microsoft Graph Delete navigation property activities for users
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-graph-users-useractivity.usersdeleteactivities
      with:
        If-Match: tools.If-Match
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-historyitems-users
      description: Microsoft Graph Get historyItems from users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-users-useractivity.usersactivitieslisthistoryitems
      with:
        $orderby: tools.$orderby
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-create-new-navigation-2
      description: Microsoft Graph Create new navigation property to historyItems for users
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: microsoft-graph-users-useractivity.usersactivitiescreatehistoryitems
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-number-resource-2
      description: Microsoft Graph Get the number of the resource
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-users-useractivity.usersactivitieshistoryitemsgetcount625e
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-historyitems-users-2
      description: Microsoft Graph Get historyItems from users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-users-useractivity.usersactivitiesgethistoryitems
      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 historyItems in users
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: microsoft-graph-users-useractivity.usersactivitiesupdatehistoryitems
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-delete-navigation-property-2
      description: Microsoft Graph Delete navigation property historyItems for users
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-graph-users-useractivity.usersactivitiesdeletehistoryitems
      with:
        If-Match: tools.If-Match
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-activity-users
      description: Microsoft Graph Get activity from users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-users-useractivity.usersactivitieshistoryitemsgetactivity
      with:
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.