Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Custom connector for Sharepoint REST API

As mentioned in the azure document for app registration, I was able to create connector for sharepoint rest api.


I tested the custom connector in powerapps for the rest api URL /sites/{sitename}/_api/web/getuserbyid({userid})/groups and I got all the sharepoint groups associated with the user and the response in JSON format.


When I tried to use the connector in powerapps and after passing all the required parameter.(sitename and userid). The output that is returned is always in xml and powerapps is not able to parse xml.

I did mention in the swagger file to produce and consume json. In the network console I could see they are using proxy url as shown below and response always shows xml 


Network consoleNetwork consoleSwagger descriptionSwagger description


How do I get the JSON format as a response ?  This solution would help  me to maintain user roles in sharepoint site 

Community Support
Community Support

Could you please share the documentation for how to register App for SharePoint REST API?


Are you using Azure functions?




Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I used the below blog article link for registering application for sharepoint rest api. Please refer the below link

Did you try adding and Accept  header?

Accept: application/json


Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,274)