Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

GET HTTP Request to SharePoint - Results Only Visible When Triggered By Owner of Flow

(0) ShareShare
ReportReport
Posted on by 27

Hi everyone,

 

I am using the HTTP Request to SharePoint to get information from the SharePoint recycle bin for a deleted item (which is also the trigger of the flow). The problem is, I only get results when I delete something with the user that is used for the connection within the flow. Obviously, this user has full admin rights to SharePoint.

 

When I delete the item with any other user, the results of the outputs are empty in the flow. On the other hand, when I execute the request directly in the browser for the user that deleted the item, the body is visible. It seems like not even the admin with global office admin rights has access to the results of another user.

 

Following an example:

 

I deleted an item on SharePoint with a test user. The body of the HTTP request to SharePoint is empty within the flow.

Tomeczek_0-1617702310483.png

On the other hand, executing the request directly in the browser for the test user is showing the body:

 

Tomeczek_1-1617702506272.png

 

Executing the request directly in the browser for the admin user, shows again an empty body:

 

Tomeczek_2-1617702643792.png

 

How can make sure the information is also available when an item is deleted with a different user?

 

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Re: GET HTTP Request to SharePoint - Results Only Visible When Triggered By Owner of Flow

    /_api/web/RecycleBin -> User's recycle bin

    /_api/site/RecycleBin -> 2nd stage recycle bin (you have to be site collection administrator)

     

    Hope it helps!

    Ferran

  • Thomas Fialek Profile Picture
    27 on at
    Re: GET HTTP Request to SharePoint - Results Only Visible When Triggered By Owner of Flow

    Hi @fchopo ,

     

    thanks for your reply. How can I access this collection recycle bin? In other words what needs to be changed in the uri?

     

    /_api/web/RecycleBin?

     

  • Verified answer
    fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Re: GET HTTP Request to SharePoint - Results Only Visible When Triggered By Owner of Flow

    Hello @Tomeczek 

    As you may know, SharePoint has 2 recyle bins (user one, and site collection one). The items removed from the user recycle bin are then stored in the site collection recycle bin (2nd stage recycle bin). So, as a site collection administrator, you could access to those elements that are in the 2nd stage recycle bin.

     

    On the other hand, Power Automate currently doesn't allow to "impersonate" a user identity when using HTTP request action, so you can't access a user's recyle bin. Another similar post can be found here: Solved: Access to other user's recycle bin in Sharepoint - Power Platform Community (microsoft.com)

    Hope it helps!

    Ferran

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492