Skip to content

Anonymous

My feedback

1 result found

  1. 197 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    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