AD security group permissions

Gareth Davies 21 Reputation points
2021-11-04T14:21:49.253+00:00

I am in the process of cleaning up an inherited AD. To put it simply, it's a mess with no obvious, or even obscure pattern or apparent planning involved in its evolution.
I have numerous security groups in the users container, some are empty so not a problem but others have members and I can't find any permissions set on NTFS shares or in Azure/Office 365.
I would like to be sure there is nothing I have missed so is there any way to pull a report on permissions assigned to a group?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,818 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,336 Reputation points
    2021-11-04T19:25:22.27+00:00

    Hello @Gareth Davies

    I can recommend the next discussion for ideas about a script to pull the information for you:

    https://social.technet.microsoft.com/Forums/lync/en-US/5b2a4c00-d67f-41b6-b0e4-f00ae988db5f/powershell-script-to-list-a-servers-users-groups-permissions-etc?forum=winserverpowershell

    I usually have this script to tell what are the access to specific directory:

    $FolderPath = Get-ChildItem -Directory -Path "C:\mydirectory" -Recurse -Force  
    $Output = @()  
    ForEach ($Folder in $FolderPath) {  
        $Acl = Get-Acl -Path $Folder.FullName  
        ForEach ($Access in $Acl.Access) {  
    $Properties = [ordered]@{'Folder Name'=$Folder.FullName;'Group/User'=$Access.IdentityReference;'Permissions'=$Access.FileSystemRights;'Inherited'=$Access.IsInherited}  
    $Output += New-Object -TypeName PSObject -Property $Properties              
    }  
    }  
    $Output | Out-GridView  
    

    Hope this helps with your query,

    ----------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  2. Gary Reynolds 9,391 Reputation points
    2021-11-04T20:25:48.443+00:00

    Hi @Gareth Davies

    Have a look at this post which provide a simple and fast way to search the AD for any permissions assigned to a user or group.

    https://nettools.net/how-to-find-assigned-permissions-in-ad/

    Gary.

    0 comments No comments