A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Dear @Glenn Maxwell,
Thank you for reaching out to the Microsoft Q&A forum. I am happy to assist you.
First, I would like to clarify that this is a user-to-user community forum. As an admin moderator, I can provide general guidance, basic knowledge, and troubleshooting steps based on the information you share. This forum primarily focuses on product usage, configuration guidance, and general best practices rather than delivering fully customized scripting solutions or tenant-specific automation code.
Since each Microsoft 365 tenant can have its own configuration, security policies, licensing setup, and permission architecture, it is difficult to provide a 100% accurate or fully tailored script for advanced reporting scenarios, such as generating a comprehensive report of all SharePoint Online sites where a specific user has roles (e.g., Site Collection Admin, Owner, Member, or access via Microsoft 365 group).
As a next step, I recommend posting your detailed requirement in communities where scripting and advanced automation experts are more active, such as:
- Microsoft Tech Community (SharePoint / Microsoft 365 Developer space)
- Stack Overflow
When posting, you may consider including additional details such as:
- Whether the sites are group-connected or classic sites
- Approximate number of sites in the tenant
- Whether Microsoft 365 E5 is assigned and Data Access Governance is enabled
- The specific PowerShell module or API being used (SharePoint Online module, PnP PowerShell, Microsoft Graph, etc.)
Providing these details will help experts better understand your environment and provide more technically accurate assistance.
If you require direct, tenant-specific support, you may also raise a support request ticket via the Microsoft 365 Admin Center. The Microsoft Support team can engage directly with you and, with your permission, access your tenant using internal diagnostic tools to provide more accurate analysis and recommendations.
The Global Admin can create a support ticket by sign in to the Microsoft 365 Admin Center > Support > Help & Support.
For detailed instructions on how to get support, please refer to Get support - Microsoft 365 admin.
Note: If you’re an end-user, please coordinate with your Office 365 Global Administrator to handle these steps.
I hope this information is helpful. If you need any further assistance, please feel free to reach out. I am here to help. Thank you very much for your understanding and cooperation.