Forum Discussion
nareshsp333
Dec 30, 2018Copper Contributor
How to take the list of all the user groups and their members of all groups
Dear Support team, i need a help in sharepoint online to take the list of sharepoint custom created groups and default groups (site collection) and their members through script. and how to ...
nareshsp333
Dec 31, 2018Copper Contributor
Hi Ali Salih,
Thank you for checking this. and i have found the some script in google
To get the Custom and Default groups
$siteURL = "https://Domain.sharepoint.com/teams/XXX"
$x = Get-SPOSiteGroup -Site $siteURL
foreach ($y in $x)
{
Write-Host $y.Title -ForegroundColor "Yellow"
Get-SPOSiteGroup -Site $siteURL -Group $y.Title | Select-Object -ExpandProperty Users
Write-Host
}
and its taking all custom and default group members, but its not possible to get the data for document level permissions. and check-in and check out files i am checking in Audit logs (Protection.office.com).
Thanks
Naresh K
Ali Salih
Dec 31, 2018Iron Contributor
Take a look at the PNP PowerShell and you can get item level permissions and other details. As I said, you need to put it together.