{"data":{"id":"ACP2E-5017","source":"qpt","sourceRef":"magento/quality-patches@1.1.85","title":"Fixes the issue where querying customer role through GraphQL returns an Internal server error when the customer is not assigned to a company.","categories":["GraphQL","B2B"],"components":["magento/module-company-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-84/acp2e-5017","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-84/acp2e-5017.md","blobSha":"426007144fb37ee2f0f63b541c17a593bcb87df5","description":"The role field of the GraphQL customer query returns Internal server error for a customer who is not assigned to a company.","stepsToReproduce":"1. In the Admin, go to Stores > Settings > Configuration > General > B2B Features, set Enable Company to Yes, and click Save Config. 1. Create a customer account that is not assigned to a company. 1. Send the following GraphQL query using a valid customer token: query { customer { email firstname role { id name } } }","introducedInQpt":"1.1.84","createdFor":["1.5.3"],"documentedRange":"1.5.0 - 1.5.3","scheduledFixRelease":"1.5.4"},"files":[{"package":"magento/magento2-b2b-base","constraint":">=1.5.0 <1.5.4","path":"patches/commerce/ACP2E-5018_B2B-1.5.3.patch","blobSha":"2e3f390573b075b0cbe6ff7d23ccfc4497f01128","url":"https://raw.githubusercontent.com/magento/quality-patches/3610179336d510e38921cb84f6c8a8ea7d9b60b5/patches/commerce/ACP2E-5018_B2B-1.5.3.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-company-graph-ql/Model/Company/Users/Formatter.php","change":"modified","package":"magento/module-company-graph-ql"}],"packages":["magento/module-company-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.9","2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8","2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.9","2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8","2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACP2E-5017 details"}