Easy script that generates graph from provided CSV file.
More details about it can be found on:
https://paweljarosz.wordpress.com/2016/06/01/exchange-mailboxfolders-permissions-dependency-graph-between-users/
Examples of how it works:
.EXAMPLE
.\PermissionMatrixGraphBuilder.ps1 -users "Pawel Jarosz", "Test User", "Next User"
That will create a graph with dependencies for 3 users given in "Users" parameter

.EXAMPLE
.\PermissionMatrixGraphBuilder.ps1 -users "Pawel Jarosz", "Test User", "Next User" -Level 1
That will do same as above :) with only difference - it will go though the file only once, so
even if for example "Teddy Burns" will have access to "Pawel Jarosz" mailbox
, and there will be some dependencies to that mailbox but entries will be BEFORE entry with
"Teddy Burns" -> "Pawel Jarosz" permissions - it won't be shown, howeven - level 2 might show it

.EXAMPLE
.\PermissionMatrixGraphBuilder.ps1 -users "Pawel Jarosz", "Test User", "Next User" -SingleUser $true
That will show only mailboxes that have direct connection to mentioned in "Users" array
PowerShell
Edit|Remove
<# 
.SYNOPSIS 
PermissionMatrixGraphBuilder.ps1 - easy script that generates graph from provided CSV file. 
 
.DESCRIPTION  
Easy script that generates graph from provided CSV file. 
 
.OUTPUTS 
Output set in the script is a png file, however that can be changed by modifying -T parameter for dot.exe 
 
.PARAMETER Users 
This parameter - when set to $true - accepts couple of users at one time, put there user you would like to find dependencies for. 
 
.PARAMETER Level 
It determines how many times sript goes through the CSV file given as the input. 
Giving level as 2 means that script will go through the file one time, and later second time  
searching for depencies for next batch of users. 
 
.PARAMETER SingleUser 
That parameter means that it will only read dependencies for one user. 
 
 
.EXAMPLE 
.\PermissionMatrixGraphBuilder.ps1 -users "Pawel Jarosz", "Test User", "Next User" 
That will create a graph with dependencies for 3 users given in "Users" parameter 
 
.EXAMPLE 
.\PermissionMatrixGraphBuilder.ps1 -users "Pawel Jarosz", "Test User", "Next User" -Level 1 
That will do same as above :) with only difference - it will go though the file only once, so 
even if for example "Teddy Burns" will have access to "Pawel Jarosz" mailbox 
, and there will be some dependencies to that mailbox but entries will be BEFORE entry with 
"Teddy Burns" -> "Pawel Jarosz" permissions - it won't be shown, howeven - level 2 might show it 
 
.EXAMPLE 
.\PermissionMatrixGraphBuilder.ps1 -users "Pawel Jarosz", "Test User", "Next User" -SingleUser $true 
That will show only mailboxes that have direct connection to mentioned in "Users" array 
 
.LINK 
https://paweljarosz.wordpress.com/2016/05/28/exchange-mailboxfolders-permissions-dependency-graph-between-users 
 
.NOTES 
Written By: Paweł Jarosz 
 
Find me on: 
* My Blog:    https://paweljarosz.wordpress.com/ 
* LinkedIn:    https://www.linkedin.com/in/paweljarosz2 
* GoldenLine:     http://www.goldenline.pl/pawel-jarosz2/ 
* Github:    https://github.com/zaicnupagadi 
 
 
Change Log: 
V1.00, 01/05/2016 - Initial version 
 
#>