Skip to content

Commit 9b4cc71

Browse files
Update Get users who create most flows.md
1 parent 28bad85 commit 9b4cc71

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

articles/English/PowerPlatform/Get users who create most flows.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ show_sidebar: false
1010
## Introduction
1111

1212
Using PnP you can easily retrieve users who are creating flows and extract data statistics. That allows you to get the most prolific Power Automate creators who created the most flows.
13-
14-
13+
<br/>
14+
<br/>
1515

1616
## Get Flow Properties
1717

@@ -21,17 +21,18 @@ Connect-PnpOnline
2121
$environment = Get-PnPPowerPlatformEnvironment
2222
$Flows = Get-PnPFlow -Environment $environment -AsAdmin | select -expandProperty Properties
2323
```
24-
<img src="/articles/images/flow18.png" width="400">
24+
<img src="/articles/images/flows18.PNG" width="400">
2525

2626
One of those properties is the Creator. If you expand it, you obtain ObjectId, which is Azure Active Directory ObjectId.
27-
<img src="/articles/images/flow104.png" width="400">
27+
<img src="/articles/images/flows104.PNG" width="400">
2828

2929
Using ```Group-Object``` and ```Sort-Object``` cmdlets, you get the users who created most flows.
3030
```
3131
$props.Creator | Group-Object -Property ObjectId -NoElement | Sort-Object -Descending
3232
```
3333

34-
<img src="/articles/images/flow19.png" width="400">
34+
<img src="/articles/images/flows19.PNG" width="400">
35+
<br/>
3536

3637

3738
## Get Azure Active Directory Users
@@ -44,7 +45,10 @@ Get-MsolUser | where {$_.ObjectId -eq "f655dd56-ffea-45ad-aa45-775e4e0eeb9b"}
4445

4546

4647
<br/>
48+
<br/>
49+
4750
## Full Script
51+
4852
```
4953
Connect-PnPOnline
5054
$environment = Get-PnPPowerPlatformEnvironment
@@ -61,6 +65,6 @@ $MostProlific | Foreach-Object {
6165
$user | Export-CSV -Path yourcsvpath.csv -Append
6266
}
6367
```
64-
<img src="/articles/images/flow21.png" width="400">
68+
<img src="/articles/images/flows21.png" width="400">
6569

6670

0 commit comments

Comments
 (0)