How to Fix Microsoft Graph API Empty Payload Errors in Power Apps
Question details
The user needs to resolve a 'BadRequest Empty Payload' error that occurs when trying to create Microsoft 365 users using the Microsoft Graph API within a Power Apps canvas app.

- Product
- Power Apps and Microsoft Graph API
- Device & OS
- not provided
- Scenario
- Creating Microsoft 365 user accounts dynamically by passing JSON payload parameters from a Power Apps canvas app via the Microsoft Graph API.
- Observed behavior
- The API request fails with an 'Empty Payload. JSON content expected' error message, regardless of the values entered in the third parameter or request body.
Ensure you have the necessary administrative privileges in your Microsoft 365 tenant and that your Power Apps environment has the appropriate API permissions configured for Microsoft Graph.
Format the JSON Request Body and Headers
The most common cause of the Empty Payload error is an improperly formatted HTTP request body or missing Content-Type headers.
When calling the Microsoft Graph API, the system expects a strictly formatted JSON object. If Power Apps passes the data as a plain string, or if the headers do not specify JSON, the API will fail to parse the body and return an empty payload error.
Check your HTTP request action in Power Apps and ensure the 'Content-Type' header is strictly set to 'application/json'.
Ensure that the request body is a valid JSON object. You must include all required Microsoft Graph user properties: accountEnabled, displayName, mailNickname, userPrincipalName, and passwordProfile.
Make sure boolean values (like accountEnabled) are passed as true/false without quotes, and string values are properly enclosed in double quotes within your JSON formatting.
Run the app action again. If formatted correctly, the Graph API will successfully parse the payload and process the user creation request.

Seek Assistance from the Power Apps Community
If your syntax is perfectly valid but the error persists, there may be a platform-specific glitch or connector limitation.
Looking for a Lightweight Alternative for Everyday Office Tasks?
While resolving complex API integrations in Power Apps, you might also need a reliable, fast, and free office suite to document your code, track API endpoints, and manage project data. WPS Office provides an excellent environment for creating comprehensive documentation.
- 1. Download the Installer: Visit the official WPS Office website and click 'Download WPS Office Free'.
- 2. Install the Software: Run the downloaded executable file and follow the on-screen instructions to complete the installation.
- 3. Start Documenting: Open WPS Writer or WPS Spreadsheet to begin organizing your Power Apps API documentation and project workflows.

Frequently Asked Questions
Why does the Microsoft Graph API return 'Empty Payload' even when I pass variables in Power Apps?
This usually happens if Power Apps evaluates the passed variable as a plain string rather than parsing it into a proper JSON object, or if the 'Content-Type: application/json' header is missing, causing the API to ignore the body content.
What are the required properties to create a user via Microsoft Graph API?
At a minimum, your JSON payload must include accountEnabled (boolean), displayName (string), mailNickname (string), userPrincipalName (string), and a passwordProfile object containing the password.
How can I test my Microsoft Graph API payload outside of Power Apps?
You can use the Microsoft Graph Explorer tool or a REST client like Postman to manually send the exact JSON payload. If the request succeeds there, the issue is likely with how Power Apps is formatting the HTTP request string.




