naftiko: 1.0.0-alpha2 info: label: Microsoft Graph Oauth2permissiongrants — users.oAuth2PermissionGrant description: 'Microsoft Graph Oauth2permissiongrants — users.oAuth2PermissionGrant. 3 operations. Lead operation: Microsoft Graph List a user''s oauth2PermissionGrants. Self-contained Naftiko capability covering one Microsoft Graph business surface.' tags: - Microsoft Graph - users.oAuth2PermissionGrant 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: oauth2permissiongrants-users-oauth2permissiongrant baseUri: '' description: Microsoft Graph Oauth2permissiongrants — users.oAuth2PermissionGrant business capability. Self-contained, no shared references. resources: - name: users-user-id-oauth2PermissionGrants path: /users/{user-id}/oauth2PermissionGrants operations: - name: userslistoauth2permissiongrants method: GET description: Microsoft Graph List a user's oauth2PermissionGrants 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: users-user-id-oauth2PermissionGrants-$count path: /users/{user-id}/oauth2PermissionGrants/$count operations: - name: usersoauth2permissiongrantsgetcountfb7b method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: users-user-id-oauth2PermissionGrants-oAuth2PermissionGrant-id path: /users/{user-id}/oauth2PermissionGrants/{oAuth2PermissionGrant-id} operations: - name: usersgetoauth2permissiongrants method: GET description: Microsoft Graph Get oauth2PermissionGrants 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: oauth2permissiongrants-users-oauth2permissiongrant-rest port: 8080 description: REST adapter for Microsoft Graph Oauth2permissiongrants — users.oAuth2PermissionGrant. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/users/{user-id}/oauth2permissiongrants name: users-user-id-oauth2permissiongrants description: REST surface for users-user-id-oauth2PermissionGrants. operations: - method: GET name: userslistoauth2permissiongrants description: Microsoft Graph List a user's oauth2PermissionGrants call: oauth2permissiongrants-users-oauth2permissiongrant.userslistoauth2permissiongrants with: $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/users/{user-id}/oauth2permissiongrants/count name: users-user-id-oauth2permissiongrants-count description: REST surface for users-user-id-oauth2PermissionGrants-$count. operations: - method: GET name: usersoauth2permissiongrantsgetcountfb7b description: Microsoft Graph Get the number of the resource call: oauth2permissiongrants-users-oauth2permissiongrant.usersoauth2permissiongrantsgetcountfb7b outputParameters: - type: object mapping: $. - path: /v1/users/{user-id}/oauth2permissiongrants/{oauth2permissiongrant-id} name: users-user-id-oauth2permissiongrants-oauth2permissiongrant-id description: REST surface for users-user-id-oauth2PermissionGrants-oAuth2PermissionGrant-id. operations: - method: GET name: usersgetoauth2permissiongrants description: Microsoft Graph Get oauth2PermissionGrants from users call: oauth2permissiongrants-users-oauth2permissiongrant.usersgetoauth2permissiongrants with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - type: mcp namespace: oauth2permissiongrants-users-oauth2permissiongrant-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph Oauth2permissiongrants — users.oAuth2PermissionGrant. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-graph-list-user-s-oauth2permissiongrants description: Microsoft Graph List a user's oauth2PermissionGrants hints: readOnly: true destructive: false idempotent: true call: oauth2permissiongrants-users-oauth2permissiongrant.userslistoauth2permissiongrants with: $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand 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: oauth2permissiongrants-users-oauth2permissiongrant.usersoauth2permissiongrantsgetcountfb7b outputParameters: - type: object mapping: $. - name: microsoft-graph-get-oauth2permissiongrants-users description: Microsoft Graph Get oauth2PermissionGrants from users hints: readOnly: true destructive: false idempotent: true call: oauth2permissiongrants-users-oauth2permissiongrant.usersgetoauth2permissiongrants with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $.