I need to export my site collection's groups from sharepoint online. I have create the following script to get all the info but I cannot retrieve the group's Id. I am talking about this ID https://xxxxxx.sharepoint.com/_layouts/userdisp.aspx?ID=28
Get-SPOSiteGroup -Site https://xxxxxx.sharepoint.com | select * | Format-Table -Wrap -AutoSize | Out-File C:\Scripts\ExportedGroups.txt -Force -Width 4096
The script will return info on the following:
- Users Roles
but no ID. Is it possible to retrieve that as well? Maybe is there a sharepoint list with all the users/groups I could export instead?