Anonymous

My feedback

  1. 141 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    An error occurred while saving the comment
    Anonymous commented  · 

    Do you have a sample Powershell script to iterate over a subsite (and any child sites) and list out all the Groups with access and their members? This capability would be similar to the Permissions Matrix but the PermMatrix and it's output isn't very readable for average users. I was tryign something like this (not working)
    ##PRE-CONFIG STEPS
    ##REQUIRES IMPORT OF SHAREGATE MODULES
    Import-Module Sharegate
    $site = Connect-Site -Url https://toplevelsitecoll/subsite1/subsite2
    ##$web = $site.OpenWeb()
    $groups =Get-Group $site

    foreach ($grp in $groups) {
    "Group: " + $grp.name;
    $groupName = $grp.name
    write-host "Group: " $groupName -foregroundcolor green
    foreach ($user in $grp.users) {
    "User: " + $user.name
    write-host "User " $user.UserLogin -foregroundcolor red
    }
    }
    Feedback sent from the Explorer view.

    Anonymous supported this idea  · 

Feedback and Knowledge Base