Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

CheckUserGroup Flow failing for one user only - BadRequest error in SharePoint connection

(0) ShareShare
ReportReport
Posted on by

Hey,

 

Please hlep me find the cause why my flow fails, unfortunatelly errors shown don't tell me much. I use standard CheckUserGroup flow to verify if user belongs to Sharepoint Group, and only for one user it fails (I've reasigned user access to SharePoint group and compared his access and privileges to different user which has no issue with runnig the flow).
Here is what I'm getting when trying user is running the flow:

MariuszKrajewsk_2-1615465342724.png

 

 

  • Community Power Platform Member Profile Picture
    on at
    Re: CheckUserGroup Flow failing for one user only - BadRequest error in SharePoint connection

    Hi @Expiscornovus 

    I ran the URI you gave, and email field is filled with correct email address. What else can I verify?

  • Expiscornovus Profile Picture
    31,648 Most Valuable Professional on at
    Re: CheckUserGroup Flow failing for one user only - BadRequest error in SharePoint connection

    Hi @Anonymous,

     

    Is it possible that the specific user doesn't have an e-mail address in his SharePoint profile?

     

    Can you check this by using this URI and check if the Email field is empty?

     

    _api/web/sitegroups/getByName('@{variables('GroupName')}')/Users?$select=Id,Email,Title,LoginName

     

  • Community Power Platform Member Profile Picture
    on at
    Re: CheckUserGroup Flow failing for one user only - BadRequest error in SharePoint connection

    Hi, thanks for response, the URI is as below (and it works for 10 other people, only one user gives such an error every time he triggers workflow):
    _api/web/sitegroups/getByName('SharePointGroupName')/Users?$filter=Email eq 'usersemail@domain.com'

  • Expiscornovus Profile Picture
    31,648 Most Valuable Professional on at
    Re: CheckUserGroup Flow failing for one user only - BadRequest error in SharePoint connection

    Hi @Anonymous,

     

    Just to double check. You are using the Send an HTTP request to SharePoint action, correct?

     

    What is the URI for the GET request you are using. The screenshot is missing part of that URI. Is it something like below?

    _api/web/sitegroups/getByName('Group Name')/Users?$filter=Id eq 28

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow