naftiko: 1.0.0-alpha2 info: label: Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.appRoleAssignment description: 'Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.appRoleAssignment. 12 operations. Lead operation: Microsoft Graph Get appRoleAssignment. Self-contained Naftiko capability covering one Microsoft Graph business surface.' tags: - Microsoft Graph - servicePrincipals.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-serviceprincipals-approleassignment baseUri: https://graph.microsoft.com/v1.0 description: Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.appRoleAssignment business capability. Self-contained, no shared references. resources: - name: servicePrincipals-servicePrincipal-id-appRoleAssignedTo path: /servicePrincipals/{servicePrincipal-id}/appRoleAssignedTo operations: - name: serviceprincipalslistapproleassignedto method: GET description: Microsoft Graph Get appRoleAssignment 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: serviceprincipalscreateapproleassignedto method: POST description: Microsoft Graph Grant an appRoleAssignment for a service principal outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: servicePrincipals-servicePrincipal-id-appRoleAssignedTo-$count path: /servicePrincipals/{servicePrincipal-id}/appRoleAssignedTo/$count operations: - name: serviceprincipalsapproleassignedtogetcount705c method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: servicePrincipals-servicePrincipal-id-appRoleAssignedTo-appRoleAssignment-id path: /servicePrincipals/{servicePrincipal-id}/appRoleAssignedTo/{appRoleAssignment-id} operations: - name: serviceprincipalsgetapproleassignedto method: GET description: Microsoft Graph Get appRoleAssignment 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: serviceprincipalsupdateapproleassignedto method: PATCH description: Microsoft Graph Update the navigation property appRoleAssignedTo in servicePrincipals outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: serviceprincipalsdeleteapproleassignedto method: DELETE description: Microsoft Graph Delete appRoleAssignedTo outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: If-Match in: header type: string description: ETag - name: servicePrincipals-servicePrincipal-id-appRoleAssignments path: /servicePrincipals/{servicePrincipal-id}/appRoleAssignments operations: - name: serviceprincipalslistapproleassignments method: GET description: Microsoft Graph Get appRoleAssignment 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: serviceprincipalscreateapproleassignments method: POST description: Microsoft Graph Grant an appRoleAssignment to a service principal outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: servicePrincipals-servicePrincipal-id-appRoleAssignments-$count path: /servicePrincipals/{servicePrincipal-id}/appRoleAssignments/$count operations: - name: serviceprincipalsapproleassignmentsgetcount4e95 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: servicePrincipals-servicePrincipal-id-appRoleAssignments-appRoleAssignment-id path: /servicePrincipals/{servicePrincipal-id}/appRoleAssignments/{appRoleAssignment-id} operations: - name: serviceprincipalsgetapproleassignments method: GET description: Microsoft Graph Get appRoleAssignment 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: serviceprincipalsupdateapproleassignments method: PATCH description: Microsoft Graph Update the navigation property appRoleAssignments in servicePrincipals outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: serviceprincipalsdeleteapproleassignments 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-serviceprincipals-approleassignment-rest port: 8080 description: REST adapter for Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.appRoleAssignment. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/serviceprincipals/{serviceprincipal-id}/approleassignedto name: serviceprincipals-serviceprincipal-id-approleassignedto description: REST surface for servicePrincipals-servicePrincipal-id-appRoleAssignedTo. operations: - method: GET name: serviceprincipalslistapproleassignedto description: Microsoft Graph Get appRoleAssignment call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalslistapproleassignedto with: $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: POST name: serviceprincipalscreateapproleassignedto description: Microsoft Graph Grant an appRoleAssignment for a service principal call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalscreateapproleassignedto with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/approleassignedto/count name: serviceprincipals-serviceprincipal-id-approleassignedto-count description: REST surface for servicePrincipals-servicePrincipal-id-appRoleAssignedTo-$count. operations: - method: GET name: serviceprincipalsapproleassignedtogetcount705c description: Microsoft Graph Get the number of the resource call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsapproleassignedtogetcount705c outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/approleassignedto/{approleassignment-id} name: serviceprincipals-serviceprincipal-id-approleassignedto-approleassignment-id description: REST surface for servicePrincipals-servicePrincipal-id-appRoleAssignedTo-appRoleAssignment-id. operations: - method: GET name: serviceprincipalsgetapproleassignedto description: Microsoft Graph Get appRoleAssignment call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsgetapproleassignedto with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: serviceprincipalsupdateapproleassignedto description: Microsoft Graph Update the navigation property appRoleAssignedTo in servicePrincipals call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsupdateapproleassignedto with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: serviceprincipalsdeleteapproleassignedto description: Microsoft Graph Delete appRoleAssignedTo call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsdeleteapproleassignedto with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/approleassignments name: serviceprincipals-serviceprincipal-id-approleassignments description: REST surface for servicePrincipals-servicePrincipal-id-appRoleAssignments. operations: - method: GET name: serviceprincipalslistapproleassignments description: Microsoft Graph Get appRoleAssignment call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalslistapproleassignments with: ConsistencyLevel: rest.ConsistencyLevel $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: POST name: serviceprincipalscreateapproleassignments description: Microsoft Graph Grant an appRoleAssignment to a service principal call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalscreateapproleassignments with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/approleassignments/count name: serviceprincipals-serviceprincipal-id-approleassignments-count description: REST surface for servicePrincipals-servicePrincipal-id-appRoleAssignments-$count. operations: - method: GET name: serviceprincipalsapproleassignmentsgetcount4e95 description: Microsoft Graph Get the number of the resource call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsapproleassignmentsgetcount4e95 with: ConsistencyLevel: rest.ConsistencyLevel outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/approleassignments/{approleassignment-id} name: serviceprincipals-serviceprincipal-id-approleassignments-approleassignment-id description: REST surface for servicePrincipals-servicePrincipal-id-appRoleAssignments-appRoleAssignment-id. operations: - method: GET name: serviceprincipalsgetapproleassignments description: Microsoft Graph Get appRoleAssignment call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsgetapproleassignments with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: serviceprincipalsupdateapproleassignments description: Microsoft Graph Update the navigation property appRoleAssignments in servicePrincipals call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsupdateapproleassignments with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: serviceprincipalsdeleteapproleassignments description: Microsoft Graph Delete appRoleAssignment call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsdeleteapproleassignments with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - type: mcp namespace: microsoft-graph-serviceprincipals-approleassignment-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.appRoleAssignment. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-graph-get-approleassignment description: Microsoft Graph Get appRoleAssignment hints: readOnly: true destructive: false idempotent: true call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalslistapproleassignedto with: $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-grant-approleassignment-service description: Microsoft Graph Grant an appRoleAssignment for a service principal hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalscreateapproleassignedto 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-serviceprincipals-approleassignment.serviceprincipalsapproleassignedtogetcount705c outputParameters: - type: object mapping: $. - name: microsoft-graph-get-approleassignment-2 description: Microsoft Graph Get appRoleAssignment hints: readOnly: true destructive: false idempotent: true call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsgetapproleassignedto with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-update-navigation-property description: Microsoft Graph Update the navigation property appRoleAssignedTo in servicePrincipals hints: readOnly: false destructive: false idempotent: true call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsupdateapproleassignedto with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-delete-approleassignedto description: Microsoft Graph Delete appRoleAssignedTo hints: readOnly: false destructive: true idempotent: true call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsdeleteapproleassignedto with: If-Match: tools.If-Match outputParameters: - type: object mapping: $. - name: microsoft-graph-get-approleassignment-3 description: Microsoft Graph Get appRoleAssignment hints: readOnly: true destructive: false idempotent: true call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalslistapproleassignments with: ConsistencyLevel: tools.ConsistencyLevel $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-grant-approleassignment-service-2 description: Microsoft Graph Grant an appRoleAssignment to a service principal hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalscreateapproleassignments 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-serviceprincipals-approleassignment.serviceprincipalsapproleassignmentsgetcount4e95 with: ConsistencyLevel: tools.ConsistencyLevel outputParameters: - type: object mapping: $. - name: microsoft-graph-get-approleassignment-4 description: Microsoft Graph Get appRoleAssignment hints: readOnly: true destructive: false idempotent: true call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsgetapproleassignments 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 appRoleAssignments in servicePrincipals hints: readOnly: false destructive: false idempotent: true call: microsoft-graph-serviceprincipals-approleassignment.serviceprincipalsupdateapproleassignments 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-serviceprincipals-approleassignment.serviceprincipalsdeleteapproleassignments with: If-Match: tools.If-Match outputParameters: - type: object mapping: $.