cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kevingeorget
Resolver I
Resolver I

401 UNAUTHORIZED error using the connector "Send Http request to SHarePoint"

Hi Flow Users,

https://svaghub.wordpress.com/2018/11/03/role-based-security-in-powerapps-using-spgroups/

I'm trying to implement role based security referring to the above blog.

I get the error when running the 'Send HTTP request to SharePoint'

401 UNAUTHORIZED
The URI i framed is below-

api/web/sitegroups/getByName(‘TestUsers’)/Users?$filter=Email eq ‘@{triggerBody()['SendanHTTPrequesttoSharePoint_Uri']}’

 

Any help appreciated.

Regards,

Kevin

1 ACCEPTED SOLUTION

Accepted Solutions
AlanPs1
Resident Rockstar
Resident Rockstar

Hi @kevingeorget , thank you for your post.

I gave this a go too, in line with Geetha's blog you posted and I found I got the same error and other 400 errors.

I then tested it with the below and eventually it worked in this way:Capture-302.png

_api/web/sitegroups/getByName('Alan_s Content Members')/Users?$filter=Email eq 'alan@domain.co.uk'

I added an underscore to the start of the URI and placed my email address inside ' '.

Maybe you could try this alone without intergrating PowerApps for now just to see if you are able to get a return from your HTTP call using the URI above and go from there?

 

If you have found my post helpful, please mark thumbs up.

If this post has solved your problem, please click "Accept as Solution".

Any other questions, just ask.

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


View solution in original post

4 REPLIES 4
AlanPs1
Resident Rockstar
Resident Rockstar

Hi @kevingeorget , thank you for your post.

I gave this a go too, in line with Geetha's blog you posted and I found I got the same error and other 400 errors.

I then tested it with the below and eventually it worked in this way:Capture-302.png

_api/web/sitegroups/getByName('Alan_s Content Members')/Users?$filter=Email eq 'alan@domain.co.uk'

I added an underscore to the start of the URI and placed my email address inside ' '.

Maybe you could try this alone without intergrating PowerApps for now just to see if you are able to get a return from your HTTP call using the URI above and go from there?

 

If you have found my post helpful, please mark thumbs up.

If this post has solved your problem, please click "Accept as Solution".

Any other questions, just ask.

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


View solution in original post

kevingeorget
Resolver I
Resolver I

@AlanPs1Thanks for the reply. Yes it was indeed the issue with the "_".

Cheers.

Kevin

Thank You."_" also works for me

AlanPs1
Resident Rockstar
Resident Rockstar

🙂 


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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 (2,025)