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 / Identify file owner in...
Power Automate
Answered

Identify file owner in Power automate desktop

(0) ShareShare
ReportReport
Posted on by 79

My goal is to produce a list of file names with their size and owner, to proactively delete or archive files.

However I'm not seeing the owner as one of the available properties under the .Current Items after I read the files from a folder.

Also, I'm using Power automate desktop because I'm reading shared drives.

 

Does anyone know if this is available or not?

Or perhaps another way of accomplishing this?

 

 

Thanks!

Angie P

  • VJR Profile Picture
    7,635 on at

    Hi @aperea2539 

     

    This is how I was able to get the owner name by using a powershell script.

     

    VJR_0-1647400369755.png

     

    Command inside the For each loop:

     

    VJR_1-1647400414119.png

     

     

    And yes it worked for network path too. 

     

    The command with network path 

    Get-Acl "\\server\share\test.txt" | Select-Object Owner

     

  • Verified answer
    fabio_doniz Profile Picture
    10 on at

    Hi @aperea2539 

     

    Use Run DOS command.

     

    fabio_doniz_0-1647438006620.png

     

    Sintaxe: dir "file path" /Q

    /Q: display file owner

     

    * Use split for search text.

     

     

    Output: 

     

    fabio_doniz_2-1647438684115.png

     

     

  • aperea2539 Profile Picture
    79 on at

    Thank you so much! This worked so much faster than reading the files, and it gave all the details I needed

    I appreciate the fast response as well 😀

  • aperea2539 Profile Picture
    79 on at

    Thank you so much for the fast response, I didn't realized I could run DOS commands, no not only this resolves my current issue; but I can leverage this tool even more now.

    I really appreciate it!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 134 Super User 2026 Season 2

Last 30 days Overall leaderboard