web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / 401 UNAUTHORIZED error...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on by 274

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

Categories:
  • Verified answer
    AlanPs1 Profile Picture
    2,471 on at

    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

  • kevingeorget Profile Picture
    274 on at

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

    Cheers.

    Kevin

  • earmiase Profile Picture
    10 on at

    Thank You."_" also works for me

  • AlanPs1 Profile Picture
    2,471 on at

    🙂 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard