A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
For the user permission state report, the supported parameter shown in the SharePoint guidance is -UserEmailList, but the values must be user principal names (UPNs), not arbitrary email strings.
Use this pattern:
Start-SPODataAccessGovernanceInsight -ReportEntity PermissionsReport -ReportType Snapshot -Workload SharePoint -Name "UserSharePointReport" -UserEmailList "******@contoso.com","******@contoso.com"
Key points supported by the documentation:
-
PermissionsReportis the report entity for listing SharePoint sites accessible to given users. - Although the parameter name is
UserEmailList, the report requires UPNs. - A single request supports up to 100 users.
- For OneDrive, use
-Workload OneDriveForBusiness. - Use
Connect-SPOServicewithout the-Credentialparameter. - PowerShell support for Data Access Governance requires
Microsoft.Online.SharePoint.PowerShellversion16.0.25409or later.
If UserPermissionsReportInvalidInputMoreThanThreshold occurs even with 2 users, the documented limit itself is not the issue. Based on the supported syntax, the practical checks are:
- Verify every value passed to
-UserEmailListis the user’s UPN.- The guidance explicitly says to fetch the UPN by using
Get-MgUser. - Do not rely on alternate email aliases.
- The guidance explicitly says to fetch the UPN by using
- Keep the request at 100 users or fewer.
- Confirm the SharePoint Online PowerShell module version is at least
16.0.25409. - Connect with:
Connect-SPOService
not with the -Credential parameter.
A minimal supported example for SharePoint is:
Start-SPODataAccessGovernanceInsight -ReportEntity PermissionsReport -ReportType Snapshot -Workload SharePoint -Name "UserSharePointReport" -UserEmailList "******@contoso.com","******@contoso.com"
If the input values are true UPNs and the request is still failing below 100 users, the context does not provide another documented workaround or alternate parameter behavior.
References: