Microsoft Graph Identity API — Users

Microsoft Graph Identity API — Users. 6 operations. Lead operation: List Users. Self-contained Naftiko capability covering one Microsoft Azure Active Directory business surface.

Run with Naftiko Microsoft Azure Active DirectoryUsers

What You Can Do

GET
Listusers — List Users
/v1/users
POST
Createuser — Create User
/v1/users
GET
Getuser — Get User
/v1/users/{user-id}
PATCH
Updateuser — Update User
/v1/users/{user-id}
DELETE
Deleteuser — Delete User
/v1/users/{user-id}
GET
Listusermemberof — List User Group Memberships
/v1/users/{user-id}/memberof

MCP Tools

list-users

List Users

read-only idempotent
create-user

Create User

get-user

Get User

read-only idempotent
update-user

Update User

idempotent
delete-user

Delete User

idempotent
list-user-group-memberships

List User Group Memberships

read-only idempotent

Capability Spec

microsoft-graph-identity-users.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph Identity API — Users
  description: 'Microsoft Graph Identity API — Users. 6 operations. Lead operation: List Users. Self-contained Naftiko capability
    covering one Microsoft Azure Active Directory business surface.'
  tags:
  - Microsoft Azure Active Directory
  - Users
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_AZURE_ACTIVE_DIRECTORY_API_KEY: MICROSOFT_AZURE_ACTIVE_DIRECTORY_API_KEY
capability:
  consumes:
  - type: http
    namespace: microsoft-graph-identity-users
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Graph Identity API — Users business capability. Self-contained, no shared references.
    resources:
    - name: users
      path: /users
      operations:
      - name: listusers
        method: GET
        description: List Users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createuser
        method: POST
        description: Create 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
      path: /users/{user-id}
      operations:
      - name: getuser
        method: GET
        description: Get User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateuser
        method: PATCH
        description: Update User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteuser
        method: DELETE
        description: Delete User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users-user-id-memberOf
      path: /users/{user-id}/memberOf
      operations:
      - name: listusermemberof
        method: GET
        description: List User Group Memberships
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_AZURE_ACTIVE_DIRECTORY_API_KEY}}'
  exposes:
  - type: rest
    namespace: microsoft-graph-identity-users-rest
    port: 8080
    description: REST adapter for Microsoft Graph Identity API — Users. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/users
      name: users
      description: REST surface for users.
      operations:
      - method: GET
        name: listusers
        description: List Users
        call: microsoft-graph-identity-users.listusers
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createuser
        description: Create User
        call: microsoft-graph-identity-users.createuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{user-id}
      name: users-user-id
      description: REST surface for users-user-id.
      operations:
      - method: GET
        name: getuser
        description: Get User
        call: microsoft-graph-identity-users.getuser
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateuser
        description: Update User
        call: microsoft-graph-identity-users.updateuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteuser
        description: Delete User
        call: microsoft-graph-identity-users.deleteuser
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{user-id}/memberof
      name: users-user-id-memberof
      description: REST surface for users-user-id-memberOf.
      operations:
      - method: GET
        name: listusermemberof
        description: List User Group Memberships
        call: microsoft-graph-identity-users.listusermemberof
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-graph-identity-users-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph Identity API — Users. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-users
      description: List Users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-identity-users.listusers
      outputParameters:
      - type: object
        mapping: $.
    - name: create-user
      description: Create User
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: microsoft-graph-identity-users.createuser
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-user
      description: Get User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-identity-users.getuser
      outputParameters:
      - type: object
        mapping: $.
    - name: update-user
      description: Update User
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: microsoft-graph-identity-users.updateuser
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-user
      description: Delete User
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-graph-identity-users.deleteuser
      outputParameters:
      - type: object
        mapping: $.
    - name: list-user-group-memberships
      description: List User Group Memberships
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-identity-users.listusermemberof
      outputParameters:
      - type: object
        mapping: $.