Microsoft Graph · Capability

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

Microsoft Graph OData Service for namespace microsoft.graph — users.appRoleAssignment. 6 operations. Lead operation: Microsoft Graph List appRoleAssignments granted to a user. Self-contained Naftiko capability covering one Microsoft Graph business surface.

Run with Naftiko Microsoft Graphusers.appRoleAssignment

What You Can Do

GET
Userslistapproleassignments — Microsoft Graph List appRoleAssignments granted to a user
/v1/users/{user-id}/approleassignments
POST
Userscreateapproleassignments — Microsoft Graph Grant an appRoleAssignment to a user
/v1/users/{user-id}/approleassignments
GET
Usersapproleassignmentsgetcountd180 — Microsoft Graph Get the number of the resource
/v1/users/{user-id}/approleassignments/count
GET
Usersgetapproleassignments — Microsoft Graph Get appRoleAssignments from users
/v1/users/{user-id}/approleassignments/{approleassignment-id}
PATCH
Usersupdateapproleassignments — Microsoft Graph Update the navigation property appRoleAssignments in users
/v1/users/{user-id}/approleassignments/{approleassignment-id}
DELETE
Usersdeleteapproleassignments — Microsoft Graph Delete appRoleAssignment
/v1/users/{user-id}/approleassignments/{approleassignment-id}

MCP Tools

microsoft-graph-list-approleassignments-granted

Microsoft Graph List appRoleAssignments granted to a user

read-only idempotent
microsoft-graph-grant-approleassignment-user

Microsoft Graph Grant an appRoleAssignment to a user

microsoft-graph-get-number-resource

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-get-approleassignments-users

Microsoft Graph Get appRoleAssignments from users

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

Microsoft Graph Update the navigation property appRoleAssignments in users

idempotent
microsoft-graph-delete-approleassignment

Microsoft Graph Delete appRoleAssignment

idempotent

Capability Spec

microsoft-graph-users-approleassignment.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph OData Service for namespace microsoft.graph — users.appRoleAssignment
  description: 'Microsoft Graph OData Service for namespace microsoft.graph — users.appRoleAssignment. 6 operations. Lead
    operation: Microsoft Graph List appRoleAssignments granted to a user. Self-contained Naftiko capability covering one Microsoft
    Graph business surface.'
  tags:
  - Microsoft Graph
  - users.appRoleAssignment
  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-approleassignment
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Graph OData Service for namespace microsoft.graph — users.appRoleAssignment business capability.
      Self-contained, no shared references.
    resources:
    - name: users-user-id-appRoleAssignments
      path: /users/{user-id}/appRoleAssignments
      operations:
      - name: userslistapproleassignments
        method: GET
        description: Microsoft Graph List appRoleAssignments granted to a user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        - 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: userscreateapproleassignments
        method: POST
        description: Microsoft Graph Grant an appRoleAssignment to a user
        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-appRoleAssignments-$count
      path: /users/{user-id}/appRoleAssignments/$count
      operations:
      - name: usersapproleassignmentsgetcountd180
        method: GET
        description: Microsoft Graph Get the number of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
    - name: users-user-id-appRoleAssignments-appRoleAssignment-id
      path: /users/{user-id}/appRoleAssignments/{appRoleAssignment-id}
      operations:
      - name: usersgetapproleassignments
        method: GET
        description: Microsoft Graph Get appRoleAssignments from users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        - name: $select
          in: query
          type: array
          description: Select properties to be returned
        - name: $expand
          in: query
          type: array
          description: Expand related entities
      - name: usersupdateapproleassignments
        method: PATCH
        description: Microsoft Graph Update the navigation property appRoleAssignments in users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: usersdeleteapproleassignments
        method: DELETE
        description: Microsoft Graph Delete appRoleAssignment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
  exposes:
  - type: rest
    namespace: microsoft-graph-users-approleassignment-rest
    port: 8080
    description: REST adapter for Microsoft Graph OData Service for namespace microsoft.graph — users.appRoleAssignment. One
      Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/users/{user-id}/approleassignments
      name: users-user-id-approleassignments
      description: REST surface for users-user-id-appRoleAssignments.
      operations:
      - method: GET
        name: userslistapproleassignments
        description: Microsoft Graph List appRoleAssignments granted to a user
        call: microsoft-graph-users-approleassignment.userslistapproleassignments
        with:
          ConsistencyLevel: rest.ConsistencyLevel
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: userscreateapproleassignments
        description: Microsoft Graph Grant an appRoleAssignment to a user
        call: microsoft-graph-users-approleassignment.userscreateapproleassignments
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{user-id}/approleassignments/count
      name: users-user-id-approleassignments-count
      description: REST surface for users-user-id-appRoleAssignments-$count.
      operations:
      - method: GET
        name: usersapproleassignmentsgetcountd180
        description: Microsoft Graph Get the number of the resource
        call: microsoft-graph-users-approleassignment.usersapproleassignmentsgetcountd180
        with:
          ConsistencyLevel: rest.ConsistencyLevel
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{user-id}/approleassignments/{approleassignment-id}
      name: users-user-id-approleassignments-approleassignment-id
      description: REST surface for users-user-id-appRoleAssignments-appRoleAssignment-id.
      operations:
      - method: GET
        name: usersgetapproleassignments
        description: Microsoft Graph Get appRoleAssignments from users
        call: microsoft-graph-users-approleassignment.usersgetapproleassignments
        with:
          ConsistencyLevel: rest.ConsistencyLevel
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: usersupdateapproleassignments
        description: Microsoft Graph Update the navigation property appRoleAssignments in users
        call: microsoft-graph-users-approleassignment.usersupdateapproleassignments
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: usersdeleteapproleassignments
        description: Microsoft Graph Delete appRoleAssignment
        call: microsoft-graph-users-approleassignment.usersdeleteapproleassignments
        with:
          If-Match: rest.If-Match
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-graph-users-approleassignment-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph OData Service for namespace microsoft.graph — users.appRoleAssignment. One
      tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: microsoft-graph-list-approleassignments-granted
      description: Microsoft Graph List appRoleAssignments granted to a user
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-users-approleassignment.userslistapproleassignments
      with:
        ConsistencyLevel: tools.ConsistencyLevel
        $orderby: tools.$orderby
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-grant-approleassignment-user
      description: Microsoft Graph Grant an appRoleAssignment to a user
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: microsoft-graph-users-approleassignment.userscreateapproleassignments
      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-approleassignment.usersapproleassignmentsgetcountd180
      with:
        ConsistencyLevel: tools.ConsistencyLevel
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-approleassignments-users
      description: Microsoft Graph Get appRoleAssignments from users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-users-approleassignment.usersgetapproleassignments
      with:
        ConsistencyLevel: tools.ConsistencyLevel
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-update-navigation-property
      description: Microsoft Graph Update the navigation property appRoleAssignments in users
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: microsoft-graph-users-approleassignment.usersupdateapproleassignments
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-delete-approleassignment
      description: Microsoft Graph Delete appRoleAssignment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-graph-users-approleassignment.usersdeleteapproleassignments
      with:
        If-Match: tools.If-Match
      outputParameters:
      - type: object
        mapping: $.